Last week at work, we unveiled one of the new Web sites I’ve been working on for a while. In doing so, we removed the old Web site completely from the server and replaced it with the new site.
Of course, when we did so, a lot of our old links became obsolete, so I had to find an effective solution to keep our regular visitors from going bananas when they tried to access some of their favorite pages. That’s when I began to look into some options for redirecting without having to create placeholder pages just for those redirects. After quite a few fruitless searches, I was able to piece together a fairly good solution, and also discovered an easy way to achieve URL rewriting on an IIS server (similar to the way you would with htaccess on an apache server).
First, you need to set up your “404” so that it points to a VBScript page. That’s the most important part. Once you’ve got that done, navigate to a page that you know does not exist on your server, just so you can test the behavior of your 404 page.