It is possible! I'm using it for years. Declare your Default.asp as your 404-site!
in the beginning of your default.asp you can analyze your query string. If it begins with:
404;
http://yourDomain.de.de:80,
you can include the new content.
for example:
http://www.myDomain.de/thisfolderdoesnotexists
with your 404 rule, it goes to the default.asp where i recognize, that it is an unknown folder.
i exprimented a lot of time, since i finally found this solution.
you may use this code, if you will make a credit-link to my website (
www.multinett.de)
thank you!
-
'ASP _REDIRECT BY MICHAEL KOTHE, (C) 2002 michael kothe www.multinett.de
-
if instr(request.queryString,"404;")=1 then
-
sTmp=request.QueryString
-
myFolder=mid(sTmp,instrRev(sTmp,"/")+1)
-
select case MyFolder
-
case "contact"
-
%><!-- #include file="kontakt.htm" --!> <%
-
case "greatsite"
-
server.transfer "greatsite.asp"
-
end select
-
end if
-
you see, you have a lot of variations, what to do with 404! So - you can search in your database for the foldername.