Forum Moderators: phranque
How is this implemented? On my server I have to use a 404 error handler to produce a 301 code for spiders and users. This means the file has to be unavailable for the 404 Handler to kick in.
Many other good threads around on this site discussing differences - try a search for more info?
I think you are referring to a meta-refresh, which is not technically a redirect. In this case, the browser itself simply fetches the new page after the specified interval. There is no dependency on a server 301 or 302 response in this case.
> How is this implemented? On my server I have to use a 404 error handler to produce a 301 code for spiders and users. This means the file has to be unavailable for the 404 Handler to kick in.
It depends on what server you are hosted on, and what privileges your are granted. On free and cheap hosting, your options are often quite limited.
There are hundreds of threads here on redirects, so it's a good idea to include your server name (e.g. Apache [google.com] or IIS [google.com]) to limit the results.
[added] ... and after installing any redirect, be sure to check to be sure you are getting the results you expected, or you can seriously confuse the search engines. Use the Server Headers checker [webmasterworld.com] or something similar. [/added]
Jim
HTTP/1.1 301 Moved Permanently
Date: Sat, 26 Jun 2004 20:35:07 GMT
Server: Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_tsunami/2.0 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.4 FrontPage/5.0.2.2634a mod_ssl/2.8.18 OpenSSL/0.9.7d
Location: htp://www.XXXXXXX.com/directories.html
Connection: close
Content-Type: text/html; charset=iso-8859-1
That's what you wanted, so the redirect response is fine.
However, the new location looks incorrect - the link is saying to use the protocol "htp:" instead of "http:" -- a typo when posting here maybe, or intentional to disable this forum's auto-linking?
htp://www.XXXXXXX.com/directories.html
As long as the new URL is correct, you're all set up.
Jim