up vote 0 down vote favorite
share [g+] share [fb]

Got a client who has a website accessed over the local area network (emphasis, not over the internet). The previous version of the website was installed incorrectly as a virtual directory under the default website. So, everyone was used to going to the following address:

http://example/MyWebApp

After installing a major update, the server was configured correctly and the web application was set up as the default on the server.

http://example/

Of course, everybody is now complaining that their URLs don't work anymore. How can I configure IIS6 to un-break their bookmarks?

link|improve this question

80% accept rate
feedback

2 Answers

up vote 1 down vote accepted

Reinoud's solution is probably the quickest fix (a bit "low-tech" but it works).

http://www.highposition.net/301-redirect-tutorial-iis/ (or any of a number of other sites Google returns for "IIS 301 redirect") has information on setting up 301/302 redirects for the "HTTP-clean" implementation, complete with screenshots.

link|improve this answer
That worked, thanks. – Will Aug 31 '10 at 17:50
feedback

The quickest way would be to create a directory called MyWebApp on the new location containing an index.html file with the following:

<meta http-equiv="refresh" content="0;URL=http://example/" />
link|improve this answer
I was hoping for more of a 301 type redirect.... – Will Aug 31 '10 at 13:31
... Or configure IIS to do a HTTP/301 ("Moved Permanently") Redirect. – voretaq7 Aug 31 '10 at 13:32
Ah, since you where explicitly refering to a lan web application I assumed there was no real need for a 301, as http 301 type redirects are mostly used for SEO purposes. – Reinoud van Santen Aug 31 '10 at 13:35
Well, that's the thing; I'm not exactly sure what's the best choice. I'd prefer a less... hacky... way of doing this. A redirect (301 or otherwise, SEO be damned) seems a better route. – Will Aug 31 '10 at 14:10
feedback

Your Answer

 
or
required, but never shown

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