RewriteEngine messes up contents of sub-directory
Posted on 2004-08-12
I have the following in the .htaccess of my /pages/ directory:
RewriteRule ^(.*)\.html index.php?id=$1 [NE]
Although it works great, it messes up my .html documents in other directories.
It causes a problem with /pages/subdir/mypage.html
Instead of returning mypage.html, it returns index.php?id=mypage
I *only* want it to affect the /pages/ directory and not any subdirectories.