Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am getting ready to move some web application from an IIS 6 server to another server and I would like to setup the old server so that if a person browses to any URL within that application they will get a page with the new URL which includes the path and query string parameters. I know how to do this as a redirect in IIS, but I can't find a way to have it displayed in a page.

share|improve this question

1 Answer 1

If all you want to do is set up a "Go somewhere else" alert instead of a redirect, the first thing that comes to my mind is to remove everything from the old server, and serve up a custom 404 page.

share|improve this answer
    
How would I setup the 404 page to display the new URL? For example for oldserver/apps/page.aspx?parm=1 I want to display newserver/page.aspx?param=1. –  user75893 Mar 25 '11 at 18:52
    
I could write an answer up about parameters in a 404, but I think the guys at StackOverflow did a better job with that: stackoverflow.com/questions/2650340/… –  Hyppy Mar 25 '11 at 18:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.