Forum Moderators: open

Message Too Old, No Replies

301 redirect seen as 302 Object Moved

301 incorrectly seen as 302 in asp pages

         

schalk

1:00 pm on Mar 25, 2006 (gmt 0)

10+ Year Member



I have a 301 redirect that seems to work ok, but when I check the actual html headers I see that the following is returned

HTTP/1.1 302 Object moved

I am using the following as an include file on all my pages

Response.Status="301 Moved Permanently"
Response.AddHeader "Location", PageURL
Response.End

Any ideas why this is happening?

Easy_Coder

3:01 am on Mar 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is set somewhere right? >> PageURL

What are you using to check the headers?

schalk

8:23 am on Mar 28, 2006 (gmt 0)

10+ Year Member



PageURL is set correct, the desired redirect is working for the actual user. So I know this bit is correct.

I have used various online resources to test this, and all show the same result.

Easy_Coder

12:33 pm on Mar 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sticky me the url if you can

Easy_Coder

1:14 pm on Mar 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Somthing is wonky with your server. You're definately getting 302'd (object moved) on that first URL and 301 on the second url.

schalk

1:26 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Yep

Problem seen with asp code.

Working solution with redirect done by server.