By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,164 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,164 IT Pros & Developers. It's quick & easy.

Custom 404.asp url Rewrite without ID

P: 1
Hi all,

My site is developing with lovely classic asp. i have question. It is possible to use 404.asp custom error rewrite page without ID? to...

For paging more than 10 record:, 02.htm, 03.htm

thank for help
Jun 5 '11 #1
Share this Question
Share on Google+
2 Replies

P: 1
I think without ID is not possible, It needs some uniqueness which may be ID aur title


Using 404.asp is possible. heliconsoft's url rewriting tool will be more beneficial.
Jun 13 '11 #2

P: 16
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:
you can include the new content.
for example:

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 (
thank you!

Expand|Select|Wrap|Line Numbers
  1. 'ASP _REDIRECT BY MICHAEL KOTHE, (C) 2002 michael kothe
  2. if instr(request.queryString,"404;")=1 then
  3.     sTmp=request.QueryString
  4.     myFolder=mid(sTmp,instrRev(sTmp,"/")+1)
  5.     select case MyFolder
  6.         case "contact"
  7.                %><!-- #include file="kontakt.htm" --!> <%
  8.        case  "greatsite"
  9.                server.transfer "greatsite.asp" 
  10.        end select
  11. 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.
Sep 23 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.