Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Newbie face to 301 problem

need domain/index.html redirect to domain/

1:57 am on Apr 18, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:May 13, 2004
votes: 0


I'm a newbie to this forum

I want to get a help for 301 directory setup in .htaccess file


1) domain.com/index.html 301 redirect to domain.com/
2) www.domain.com/index.html 301 redirect to www.domain.com/

3:23 am on Apr 18, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Mar 5, 2003
votes: 0

If your server is running Apache, try this redirect (place it in your .htaccess file in your root directory):

Redirect 301 /index.html http*://www.domain.com/
(ignore the * above)

It's a good idea to make sure you pick either www.domain.com or domain.com for your site. You can read more about the recent problems this has caused here:


4:56 am on Apr 20, 2006 (gmt 0)

New User

5+ Year Member

joined:Mar 9, 2006
votes: 0

I am also running into a problem with a 301 redirect.

My .htaccess file reads:

redirect permanent /page.html [abccompany.com...]

For some reason this redirect works in Firefox when I go to the page.html page.

But when I use IE I receive the http 404 not found error header as well when I use 301 redirect server response tools online.

Any ideas what I may be doing wrong, or what might be wrong?