Created
December 13, 2011 10:01
-
-
Save brstp/1471487 to your computer and use it in GitHub Desktop.
Custom error page for IIS to redirect to redirect dispatcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
option explicit | |
Response.Buffer = true | |
dim sServerName | |
dim sURL | |
sServerName = lcase(Request.ServerVariables("SERVER_NAME")) | |
select case sServerName | |
case "web.friskissvettis.se": sURL = "http://omdirigera.se/404.html" | |
case else sURL = "http://whatever.tld" | |
end select | |
Response.Status = "301 Moved Permanently" | |
Response.addheader "Location", sURL | |
Response.End | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment