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

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

301 redirect clarification
Is this syntax correct?

 6:09 am on Aug 27, 2003 (gmt 0)

Hi, I would greatly appreciate it if someone could clarify this for me.

I've renamed a page (page remained on original site and in original folder) and used a 301 redirect like so:

redirect 301 /folder/file.php [site.com...]

While this is working, I would have thought it better to use something like this:

redirect 301 /folder/file.php /folder/file.htm

but this only created an error. Have I used the correct syntax (thinking mainly from a search engine spider point of view) for the 301 statement? If I haven't, could someone please let me know how it should be stated.




 12:48 pm on Aug 27, 2003 (gmt 0)

The syntax is detailed here [httpd.apache.org] and what you have is correct.


 12:55 pm on Aug 27, 2003 (gmt 0)

-just clarifying; your error in the latter case comes because a 301 redirect is an external redirect. It is not something that is internal to the server (SE's and browsers need to know about it).

As it is external, you have to use the full external path, including the http-stuff.



 8:36 pm on Aug 27, 2003 (gmt 0)

Thank you very much for the information and clarification, I greatly appreciate it

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
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