To force OJS to remove the “index.php” of all URLs,
- Edit config.inc.php and set “restful_urls” to “On”.
- Then enable the “mod_rewrite” module {Learn More]
sudo a2enmod rewrite
- Then create the “.htaccess” file in root folder and copy and paste the following;
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,L] </IfModule>
- Make file permission of the .htaccess to 644
Leave a Reply