Welcome to WebmasterWorld Guest from 54.163.84.187

Forum Moderators: phranque

301 redirect clarification

Is this syntax correct?

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

10+ Year Member



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.

Thanks.

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

WebmasterWorld Senior Member 10+ Year Member



The syntax is detailed here [httpd.apache.org] and what you have is correct.
12:55 pm on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



-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.

/claus

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

10+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month