Which directive could make apache/rewrite redirect products/ to products.php
Posted
by
Fernando
on Server Fault
See other posts from Server Fault
or by Fernando
Published on 2010-11-15T14:36:57Z
Indexed on
2011/01/09
17:55 UTC
Read the original article
Hit count: 393
Hello,
I am having a trouble with two different apache servers. They are 2.2.x, so minor version is different.
At both of them i have the same php application with this .htaccess:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L]
My issue is that in server A, when i access products/ it redirects me to products.php.
While in server B, when i access products/ it redirects me to index.php. This is the correct and wanted behavior.
As the modrewrite rules are equal in both servers, any ideas of other directives that could be causing this problem?
Thanks!
© Server Fault or respective owner