I have the following .htaccess on my development server (Apache2 under Ubuntu 10.10):
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^/$ master.php?url=index.html [L]
RewriteRule ^(.+\.html)$ master.php?url=$1 [QSA,L]
This works fine on my own server and redirects all requests for .html files and "/" to master.php with the appropriate filename passed on the querystring. However, when I uploaded it to my GoDaddy hosting account I got 404s for requests for .html files and the content of index.php for "/". I solved the 404 errors by adding "Options -Multiviews" and "RewriteBase /", but I still got the content of index.php instead of master.php?url=index.html for "/".
Can anyone tell me what the first rewrite rule should be to redirect "/" to master.php?url=index.html?
TIA,
Geoff

4Likes
LinkBack URL
About LinkBacks





Reply With Quote





Bookmarks