Results 1 to 1 of 1
April 5th, 2003, 11:46 PM #1
- Join Date
- January 17th, 2005
I am trying to make my dynamic site to be search engine friendly and have successfully implemented 404.asp and server.transfer in iis 5.0
However, everytime I redirect non existing document using 404.asp and server.transfer , 404.asp always generate 302 header which is not desireable.
I have added Response.Status = "200 OK" command to my 404.asp but it's not working, I still get 302 error
Here is the code i use in 404.asp
Response.Status = "200 OK"
strQ = Request.ServerVariables("QUERY_STRING")
if instr(strQ,"msg") then
posawal = InStrRev(strq, "msg")
strq = Mid(strq, posawal + 3, 20)
strq = Replace(strq, ".htm", "")
How do I tell IIS to return "200 OK" header?. Where did I make mistake?. I do not want "302" header because I am afraid it will make my site not crawable.
Featured: How to Deal with 404 and 302 Error PagesBy Packy in forum Programming / Datafeeds / ToolsReplies: 7Last Post: September 26th, 2013, 02:10 PM
By TrishaLyn in forum Blogging, Mobile and Social MediaReplies: 3Last Post: March 15th, 2010, 07:33 PM
By boningroup in forum GoldenCANReplies: 3Last Post: June 2nd, 2007, 02:08 PM
By Kimmyshop in forum ShareASale - SASReplies: 1Last Post: May 27th, 2005, 12:41 PM
By gettnthar in forum Midnight Cafe'Replies: 1Last Post: October 3rd, 2004, 05:10 PM