Code:RewriteRule index.html$ [replacer_a] [R=301,L]
hi folks,
I did my first 301 redirect yesterday and all went pretty well (should have done it ages ago really). I used the below code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]
However now I'm a bit stuck. I also want to redirect example.com/index to example.com. I've tried fiddling with the code but nothing seems to work. I was wondering if anyone out there might be able to help out an .ht access novice?
Last edited by andywozhere; 24-06-2009 at 07:51 PM.
Code:RewriteRule index.html$ [replacer_a] [R=301,L]
Thanks very much Babyboy808, much appreciated!