Reputation: 26617
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^alice.html$ bob.html
This works fine. However, changing the last line to
RewriteRule ^get/?$ get.php
and I get a 404.
Funnily enough it works on my local (XAMPP) machine, but not on my host (GoDaddy). Any thoughts?
Edit: It seems that rewrite rules only work when they're not in a directory format (i.e. have a file extension).
Upvotes: 2
Views: 70
Reputation: 26617
Solution was to add "Options -MultiViews" to the top of .htaccess
Upvotes: 2