Remove index.php from url in OJS3.4

Hello
I have trying for few days on how to remove index.php from URL. I read so many posts, threads, etc with no avail.

I have made restful_url = on.

and added this to my .htaccess

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,L]

mod_write is enabled and working fine.

I am getting this error
The page isn’t redirecting properly

Any idea?

Hi @hbjaili ,

Please see check first in forum post here where options are referred to for using mod_rewrite like:

Once configured, I you still have trouble reaching the /api resources, be sure you don’t miss the 307 redirections rules as Antii-Jussi proposed here:

If that doesn’t relate to your particular use case (which we find is most commonly people wanting to change standard URL), then please reply elaborating on what you are trying to do.

Cheers,
m.

Hello
I have tried everything in PKP forum and StackExchange with no avail.

I have the latest version installed OJS 3.4

Here is my .htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php/$1 [L]
Options +FollowSymLinks


#----------------------------------------------------------------cp:ppd
# Section managed by cPanel: Password Protected Directories     -cp:ppd
# - Do not edit this section of the htaccess file!              -cp:ppd
#----------------------------------------------------------------cp:ppd
AuthType Basic
AuthName "Protected 'public_html'"
AuthUserFile "/home/mdaj/.htpasswds/public_html/passwd"
Require valid-user
#----------------------------------------------------------------cp:ppd
# End section managed by cPanel: Password Protected Directories -cp:ppd
#----------------------------------------------------------------cp:ppd

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

I have the same issue. Did you fix this?