0

Somehow when I use a specific friendly URL the rewriterule doens't work.

Does anyone know what I am doing wrong?

Below my code within the .httaccess file

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

When I try the following URL everything goes fine:

http://localhost/test/test

However when I use the following URL the rewrite doens't happen:

http://localhost/index/test

Thanks in advance.

Ralph
  • 41
  • 1
  • 5
  • 1
    Try disabling `MultiViews` option. See my answer on this old post: https://stackoverflow.com/questions/25423141/what-exactly-does-the-multiviews-options-in-htaccess – Justin Iurman Oct 16 '19 at 21:45
  • 1
    That was indeed the solution! Thank you very much! – Ralph Oct 17 '19 at 07:16

0 Answers0