Hi Betty,
From your description, you use the following page to track the httpheader
of the response of your 404 redirect page but found that no 301 status(you
set) returned, correct?
http://www.seoconsultants.com/tools/headers.asp
I've searched for some other articles on 404 page redirection(SEO approach)
and the code you used below should be correct:
>Response.Status="301 Moved Permanently"
>Response.AddHeader "Location", x
I've also performed test on my local side. I used the "Trace Utility" in
SoapToolkit 3(a tool that can capture http messages) and found that the 301
status does return at first(when the redirect.asp send the redirect header
back), then, the send request(to the new location) will bring back the 200
status. I think this is the behavior you expect, correct? I'm wondering
whether it is the above "headers.asp" page that may not return the correct
headers(or it only return the last page's headers and omit any intermediate
redirection ones).
Please feel free to let me know if there is anything I omited.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?YzY3NjIyOA==?= <>
>Subject: Update to redirect search engine highly ranked page
>Date: Mon, 25 Feb 2008 10:02:04 -0800
>
>Hi all,
>
>I posted the thread in Jan. and got many responses and I am very
appreciated
>to those contributors.
>
>Here is my update. After read all suggestions, comments and instructions.
>I think use 404 page redirect the users to the new page is doable. But I
>believe that I need to brand that redirect with 301 response:
>so I replaced the original
> Response.Redirect x 'x is new web page addrress
>with the following code
>
>Response.Status="301 Moved Permanently"
>Response.AddHeader "Location", x
>
>After that I used http://www.seoconsultants.com/tools/headers.asp
>to check header information by entering an old page and it did redirect me
>to a new page, but I expected that the header informaiton should look like
>this: HTTP Status Code - 301 Moved Permanently
>But acutally I got the result like this:
>HTTP Status Code: HTTP/1.0 200 OK
>
>Did I do anything wrong? What's the best place to put custom 404 page?
>My testing server is on the intranet, does that matter?
>
>Thank you.
>
>--
>Betty
>