URL redirection database

Posted on 2004-11-10
Medium Priority
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
  • 3
LVL 15

Expert Comment

ID: 12551825
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

mattisflones earned 200 total points
ID: 12551843
Something similar is described here http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20897355.html#12515659 by oldskool79. The 404 page should be triggered when a user tries to hit a non-existing page.

Author Comment

ID: 12590035
Great, thanks for the link!
LVL 15

Expert Comment

ID: 12592763
:-) Glad to help...

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

839 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