My site uses mod_rewrite for most URL's within the site. eg.
domain.com/contact.htm working for a long time and is quite simple, but unfortunately I cannot for the life of me get subfolder rewrites working so that I can go to
domain.com/product1/about.htm without it taking me straight to a 404 page.
Here is an excerpt from my .htaccess.
RewriteRule ^product1/([^/]+).htm$ /product1/index.php?p=$1 [L] #Even hardcoded isn't working... RewriteRule ^([^/]+)/([^/]+)/([^/]+).htm$ /$1/$2/index.php?p=$3 [L] RewriteRule ^([^/]+)/([^/]+).htm$ /$1/index.php?p=$2 [L] RewriteRule ^([^/]+).htm$ /index.php?p=$1 [L]
These rules work fine on http://martinmelin.se/rewrite-rule-tester/ but never seem to work in practice. I'd love some help on this.
Edit: FYI, this is a singular .htaccess file located in the root www folder of domain.com.