Dear All,
please help me to remove index,php from my site path. I am planning to transfer bunch of my journal in to OJS. But facing below issue.
currently it shows like xxx/index.php/journal name
I want it to be xxx/journal name.php.
I tried several ways but all end in failure.
IF any one solve this issue recently, please guide me.
Please describe what you have tried and what the results were.
A good starting place is this FAQ:
4) How can I remove "index.php" from the URLs in OJS?
A: OJS uses a REST-style URL syntax for all of its links. To force OJS to remove the
"index.php" portion of all URLs, edit config.inc.php and set "restful_urls" to "On".
In addition, your server will have to support URL rewriting in order to recognize
the new URLs. Apache servers use the mod_rewrite plugin, which must be enabled
in your httpd.conf, and the following section added to the correct section of either
your httpd.conf or an .htaccess file (preferred) in your OJS root directory (the same
location as config.inc.php):
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
1 Like
Just commenting on the information. If you are using OJS the apache SSL secure mode. These rules must be applied on VirtualHost *:443 and not on port 80.