homepage Welcome to WebmasterWorld Guest from 50.19.169.37
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Newbie face to 301 problem
need domain/index.html redirect to domain/
chokan




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

Hi,

I'm a newbie to this forum

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

Details:

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

 

canuck




msg:1517532
 3:23 am on Apr 18, 2006 (gmt 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:

[webmasterworld.com...]

arrowdevelopment




msg:1517533
 4:56 am on Apr 20, 2006 (gmt 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?

Thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved