htaccess root redirect

Status
Not open for further replies.

ziycon

New Member
I'm trying to redirect any that comes to http://www.mydomain.com to http://www.mydomain.com/index.html using htaccess, I've tried everything under the sun but can't figure it out, its a permanent redirect.

index.php is redirected to index.html which is rewritten from index.php?page=index, another example would be index.php?page=about is rewritten to about.html, I hope this makes sense.

I'm using:
Code:
Options +FollowSymlinks
RewriteEngine On

RewriteRule ^/$ index.html [L]

RewriteRule ^([^/]*)\.html$ index.php?page=$1 [L,NC]
This works to a certain extent, the only issue is that its redirecting to http://www.mydomain.com/?page=index when it should be http://www.mydomain.com/index.html

Anyone any ideas, all help appreciated.
 
Status
Not open for further replies.
Award-winning Mac antivirus and Internet security software
Top