Forum Moderators: open

Message Too Old, No Replies

How to do a permanent 301 redirect?

         

PFOnline

6:37 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



Hi all, this should be a pretty easy question... :)

We recently had to change our main page from index.html to index.shtml and for search engines and just in case some sites out there linked to mysite.com/index.html I'd like to do a 301 permanet redirect from index.html to index.shtml

How would I do this? (using .htaccess)

Thanks!

Birdman

6:45 pm on Apr 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



redirectpermanent /index.html ht*p://www.yoursite.com/index.shtml

I put the * in there to delink.

PFOnline

6:47 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



Thanks birdman. :)

PFOnline

6:49 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



One more thing, should I delete the index.html file or leave it..... Or does it matter?

Birdman

6:52 pm on Apr 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Delete it since all requests are sent to the .shtml page anyway.

PFOnline

6:53 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



OK, great... Thanks again birdman, it works. :)