Thursday, 19 September 2013

RewriteRule not working in subfolder

RewriteRule not working in subfolder

I have written a rewrite rule so my website does not require URL to have
.php in which looks like this:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)/$ $1.php
But when I created a mobile version of the site and put files in a
subfolder called "m" the rewriteRule doesn't work for the subfolder.
Any help will be appreciated.

No comments:

Post a Comment