URL redirection database

Posted on 2004-11-10
Last Modified: 2010-04-06

I'm in the process of migrating my website and I have around 2500 pages.  Is there any way through code or IIS configuration to redirect the users to the new URLs?  The coding that I have encountered map just one URL.  I'm thinking of putting the old/new locations in a database and mapping it that way.  Can this be done in either ASP or ASP.NET?

Thanks for any suggestions!
Question by:wym
    LVL 15

    Expert Comment

    You could do it with ASP and a DB.
    First set up the DB with old/new adresses.. then make a page that retrieve the requested URL. (Use a custom built error page for that, 404 i think.. its in IIS.) then search the database for a match, and redirect to the new page... Voilà!
    LVL 15

    Accepted Solution

    Something similar is described here by oldskool79. The 404 page should be triggered when a user tries to hit a non-existing page.

    Author Comment

    Great, thanks for the link!
    LVL 15

    Expert Comment

    :-) Glad to help...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Suggested Solutions

    Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now