Forum Moderators: Robert Charlton & goodroi
Googlebot will still keep trying to spider these urls - sometimes for over ayear - but with decreasing frequency. Addtionally, if you want to see those 404 or 410 status urls completely dropped from search results quiuckly, you can easily request that and have it happen. Not so with a 500 error.
Apache Web Server [webmasterworld.com]
Microsoft IIS Web Server [webmasterworld.com]
Databases [webmasterworld.com]
'This code assumes your SQL connection is open and the
'object is named "objado". You also need to have page buffering enabled in the IIS Manager or at the top of the page do a response.buffer=true
set rs = objado.execute(insert-sql-statement-here)
if rs.eof or rs.bof then
response.clear
response.status = "404 - Page not found" 'or 410 - Gone your choice
response.write "insert your friendly HTML error code here"
'clean up open object references
rs.close
set rs = nothing
objado.close
set objado = nothing
response.end
else
'do your normal recordset processing here
end if