-
Custom 404 and friendly url
hi
I have some method to rewrite for classic asp. but It is possible to rewrite:
DYNAMIC URL:
www.cambodia-tourism.org/where-to-go/siem-reap/where-to-visit/view.asp?id=3
to Friendly
www.cambodia-tourism.org/where-to-go/siem-reap/where-to-visit/3-angkor-wat.html
any tips ?
thanks
Last edited by Mittineague; May 26, 2011 at 15:41.
Reason: OP forgot to turn off auto-linking
-
IString = Request.ServerVariables("QUERY_STRING")
arrPage = split(IString, "/")
iPCount = ubound(arrPage) - 1
for i = 3 to iPCount
Response.Write("arrPage(" & i & "): " & arrPage(i) & "<br>")
next
-
Many Thanks, now i find the way to do it
www.cambodia-tourism.org/where-to-go/siem-reap/where-to-visit/angkorwat-temple/1
Last edited by Mittineague; Jun 7, 2011 at 11:19.
Reason: OP forgot to turn off auto-linking
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks