classic asp stop redirecting

Oratrourb

New Member
I have an index.html file & a default.asp file (same directory)and I want to access the index.html file only if domain/server name was entered e.g. www.cat.com if anything else was entered I want to display Response.Write('Page Not Found')my default.asp file:\[code\]<% If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("cat.com") ) = 0 Then Response.Write("Page Not Found") End If %> \[/code\]Reason I am doing this is because I am pointing multiple domains to the same directory.Currently both domains gets redirected to the index.html file.Is it possible to stop execution if other then cat.com was entered? Thank you
 
Back
Top