Print Page | Close Window

Asp Url Rewrite by 404

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27872
Printed Date: 29 March 2026 at 10:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Asp Url Rewrite by 404
Posted By: angkorboy
Subject: Asp Url Rewrite by 404
Date Posted: 24 September 2009 at 5:51pm
Dear Expert

I am new developer for Asp Site. I found Asapi Rewrite, Other Mode Rewrite software incapable with my hosting. After research many weeks, i have found 404 custom in IIS can make Asp Classic Url Rewrite very well.  Then

I am working  with my Classified System at http://www.cambodiagateway.com/classifieds" rel="nofollow - http://www.cambodiagateway.com/classifieds  it work with category. like :  http://www.cambodiagateway.com/classifieds/2-real-estate/%20" rel="nofollow - http://www.cambodiagateway.com/classifieds/2-real-estate/

can i remove 2 ID by any method in 404 request query string: cut off ID : this
http://www.cambodiagateway.com/classifieds/real-estate/%20" rel="nofollow - http://www.cambodiagateway.com/classifieds/real-estate/

this is my 404 error code within database pages.

<%
Set istekurl = Request.ServerVariables("QUERY_STRING")  
istekbolum = Split(istekurl,"/")
Gelendir=istekbolum(4)
Parcala=Split(Gelendir,"_")
cat_id=Parcala(0)

Sorgu="Select * From links Where live=1 and ClassTopic="&cat_id&""
Rs.Open Sorgu,bag,1
if rs.eof then
response.redirect "/directory/submit.asp?uyari=notfound"
end if
%>

any help?




-------------
Tourism of Cambodia - http://www.cambodia-tourism.org" rel="nofollow - http://www.cambodia-tourism.org
http://www.cambodiagateway.com" rel="nofollow - CambodiaGateway - Cambodia Classified



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net