I recently updated the OJS version from 3.3.0.11 to 3.3.0.13. I have two journals in my installation: one “real” and another for tests. I need to create a new one, but I got a general error anche in the Cache from firefox:
https://mysubdomain.com/_/api/v1/contexts [HTTP/1.1 404 Not Found 144ms]
I have the main configuration of OJS in https://mysubdomain.com/, the test journal in https://mysubdomain.com/test and the real journal in https://realjournal.com/
I have this configuration in .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
## Journal has its own domain
RewriteRule ^api/v1(.*)$ index.php/realjournal/api/v1$1 [L,R=307]
RewriteCond %{SERVER_NAME} ^(www\.)?realjournal.com
RewriteCond %{REQUEST_URI} !/realjournal
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/realjournal/$1 [QSA,L]
#Mainsite of OJS with journal overview
RewriteRule ^api/v1(.*)$ index.php/test/apiv1$1 [L,R=307]
RewriteCond %{SERVER_NAME} ^(www\.)?mysubdomain.com
RewriteCond %{REQUEST_URI} !/test/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index/(.*)$ /index.php/index/$1 [QSA,L]
</IfModule>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
In the config.inc.php I have
allow_url_fopen = Off
base_url[index] = https://mysubdomain.com/index
base_url[real_journal] = https://realjournal.com
base_url[test] = https://mysubdomain.com/index.php/test
restful_urls = On
I also tried to add the base_url[second_journal] in the config, before creating it, but I still got the api error.
How come I cannot create a new journal now?