asp classic - custom 404 - would this work? -


Should this custom 404 page work? It was created by another developer ... IIS7 is running

  & lt;% @ LANGUAGE = "VBSCRIPT" codepages = "1252"%> (Strqstring) & gt; 4) then strURL = right (strQString, Len (strqString) -4) if (instr (lcase (strqstring), "Www") 1) Then change strURL = (strcurl, "www", "www2 ") Change other strURL = (strcurl," http: // "," http: // www2. ") End if end if% & gt; & Lt; Html & gt; & Lt; HEAD & gt; & Lt; META HTTP-EQUIV = "Refresh" content = "3; URL = & lt;% = strURL% & gt;" & Gt; & Lt; Style & gt; Body {color: black; Font-family: aerial; Text align: center; } H1 {font-size: 16px;} H2 {font-size: 12px;} & lt; / Style & gt; & Lt; / HEAD> & Lt; Body & gt; & Lt; Img src = "http://example.ca/_bin/images/logo.jpg" /> & Lt; H1 & gt; & Lt;% & gt;% = Change (, "", "404" strQString); - can not be found. & Lt; / H1> & Lt; H2 & gt; & Lt; A href = "& lt;% = strURL% & gt;" & Gt; & Lt;% = strURL% & gt; & Lt; / A & gt; Try redirecting to ... & lt; / H2 & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

If you care about SEO then these types of things are not recommended is. Fix either the problem for 500 errors or 301 permanent redirects for 404 errors, but dynamic redirecting is not being seen favorably by robots.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -