Hi all,
I hope you can help with a simple problem I have. I have some code in my .htaccess file that redirects the front page to [my web site] at www.example.com/index.php
I want my canonical homepage to be www.example.com
However I cannot figure out how to successfully alter the code in .htaccess to achieve this.
The code in question reads:
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [L,R=301]
#
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^index\.html$ "http\:\/\/www\.example\.com\/index\.php" [R=301,L]
Can someone please lend a quick hand?
Many thanks
Bob
[edited by: jdMorgan at 3:00 am (utc) on Apr 28, 2010]
[edit reason] example.com & formatting [/edit]