Reputation: 1771
My issue put simply...
this works:
RewriteRule ^foo http://google.com
but this does not:
RewriteRule ^routing/? routing.php [L]
there is no directory or file name with the name routing. Please see this question for details: .htaccess url routing subdirectory
Since asking that question my understanding of the .htaccess system has grown significantly. I now undertand it, and from what i see everything looks fine. Changing that one line will redirect to google when foo is used and just render a 404 error is routing is used. Also I am sure routing.php is there and working.
Any suggestions to why this is not working?
Upvotes: 0
Views: 69
Reputation: 143876
You know what, I bet it's because you have Multiviews
turned on. Try:
Options -Multiviews
at the very top of your htaccess file.
Upvotes: 1
Reputation: 2350
Did you try it without the question mark? Looking over the docs, I don't think you should use a question mark at all: http://httpd.apache.org/docs/current/mod/mod_rewrite.html Try a $ instead.
Upvotes: 1