URL rewriting - is it possible in Classic ASP?

Discussion in 'Classic ASP' started by Bruce, Aug 3, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

  2. Hi guys,

    Is it possible to do url rewriting with classic ASP without installing an ISAPI rewriter on the server?

    Thanks for your help!
     
  3. Don't forget you can use your 404 page to [figure out which page to server and] do a Server.Transfer [to the right page].

    Also, the 'right page' will not have the variables, so you'll have to 'figure out' the variables.

    for example: if the URL is www.yoursite.com/category_Monitors.html and you want to show category.asp?catid=monitors.

    <ul>[*] in the 404 page, look at the page name (category_Monitors.html) and figure out that you want to show category.asp. Server.Transfer 'category.asp'. (NOT to 'category.asp?catid=monitors', just the page name)
    [*] in category.asp, look at the page name again, figure out the catid, set the catid=monitors.[/list]

    Hope that helps
    Bruce
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page