Hello,
I’ve recently switched my ojs installation from the subdirectory of the main site (mysite.com/ojs
) to its own subdomain (ojs.mysite.com
). Everything seems to be working okay except the fact that there’s an additional ‘/ojs/’ to the links available on the following pages for every single journal on my site:
http://ojs.mysite.com
/ojs/index.php/journal1/information/authors
I noticed that such links are created in cached files like fc-journalSettings-3.php …
The base_url[index] in config.inc.php is as follows:
base_url[index] = http://ojs.mysite.com/
Do you know what could be the reason for this additional /ojs/ to these kind of links?
Thank you.
Regards,
D
Hi @Dragomir,
Some of the internal links in OJS are generated when you create the journal, so if the relative path changes, you’ll need to correct them manually in the journal’s setup area.
Regards,
Alec Smecher
Public Knowledge Project Team
1 Like
Hi @asmecher,
Thank you for your answer.
I was unable to find any instances of /ojs/
there and still I have no clue on what is the reason for having this additional /ojs/
in some links on pages like http://ojs.mysite.com/index.php/journal-name/information/authors
. I checked the Setup process, etc., without success.
However, I’ve managed to rewrite all links containing /ojs/
with the following .htaccess
rule that I found here:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^ojs/(.*)$ /$1 [L,NC,R]
I’m not sure about the side effect of the rule, but for now it does the trick…
Regards,
D