Forum Moderators: phranque
Here is what I have running:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^detail/II(.*)/$ detail.php?II=$1 [NC,L]
RewriteRule ^detail/II(.*)$ detail.php?II=$1 [NC,L]
The issue is that it works correctly when fed from pages within a subdirectory (ie www.site.com/directory/page.php) but not with pages in the root directory (ie www.site.com/page.php). When fed from a page in the root directory I get a 404 error.
I assume it's a path issue or something with RewriteBase / but I can't figure it out. I am moving to a new server (where it's not working) but it works fine on the old server.