Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
301 redirect clarification Is this syntax correct? icarus msg:667256 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 [
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.
DaveAtIFG msg:667257 12:48 pm on Aug 27, 2003 (gmt 0)
The syntax is detailed here [ httpd.apache.org] and what you have is correct. claus msg:667258 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.
icarus msg:667259 8:36 pm on Aug 27, 2003 (gmt 0)
Thank you very much for the information and clarification, I greatly appreciate it