Hi there,
I think my .htaccess file has gone haywire. I'm attempting to implement RewriteEngine (ie. mod_rewrite) locally, and while it works perfectly on my online server it's refusing to work on my Mac.
This should (and does) rewrite article/12/title-goes-here to article.php?id=12. Locally, though, it doesn't pass the variable and seems to have some really odd caching issues. I'm able to disable RewriteEngine or even delete the entire section and my web server still rewrites the URl (albeit continues to omit the ID). You think that's weird? How about this - restarting apache doesn't clear the cache, either. Yeah.
Any ideas?
I think my .htaccess file has gone haywire. I'm attempting to implement RewriteEngine (ie. mod_rewrite) locally, and while it works perfectly on my online server it's refusing to work on my Mac.
Code:
RewriteEngine on
RewriteRule ^article/(.*)/([^/\.]+)/?$ article.php?id=$1 [NC,L]
This should (and does) rewrite article/12/title-goes-here to article.php?id=12. Locally, though, it doesn't pass the variable and seems to have some really odd caching issues. I'm able to disable RewriteEngine or even delete the entire section and my web server still rewrites the URl (albeit continues to omit the ID). You think that's weird? How about this - restarting apache doesn't clear the cache, either. Yeah.
Any ideas?