Redirecting Friendly Urls

Discussion in 'Classic ASP' started by Webs, Oct 31, 2006.

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

    I have just moved over a corporate website from their old host to DASP. My problem is with redirecting friendly URLS.

    On the old host, the website http://www.cbetech.com would allow setting up a URL such as http://www.cbetech.com/Nov17 which would resolve to http://www.cbetech.com/NewsEvents/EventDetails.asp?EventID=96

    This is not working on DASP. I created a help ticket and was told that this needed to be done programatically (?). Something about a file in the document root that would contain the redirects for all the friendly URLS?

    Has anyone faced this and have a solution for how I can solve this? The client has mailed out postcards with friendly URLS on it and they are all returning "Page not Found" as we speak.

    Thanks,
    Webs
     
  2. For a detailed method to rewrite the urls, check out this thread - http://community.discountasp.net/default.aspx?f=5&m=9333


    For a quick fix, you can create a subfolder in your site called "Nov17" (since the server will attempt to load "http://www.cbetech.com/Nov17/default.asp"). Inside the Nov17 folder create a "default.asp" file with an response.redirect in the ASP file.


    <% response.redirect "NewsEvents/EventDetails.asp?EventID=96" %>
    Do that for each "friendly" URL you have.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    If you do not have a lot of these redirect, it is not worth implementing URLRewriting because it can be quite complicated.

    Using the manual redirect method should work just fine!

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
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