SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2006
    Location
    Phnom Penh, Cambodia
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry 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

  2. #2
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Member
    Join Date
    May 2006
    Location
    Phnom Penh, Cambodia
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •