How do I remap a URL?
I need to move an old legacy web service to a new location. It will be under a virtual directory now rather than it's own website in IIS. Unfortunately I can't change the config settings for a client that is using the 开发者_如何学Pythonservice, so is there a way to map the URL from the old address to a different site in a virtual directory?
Eg.
http://oldservice.oursite.com/aservice.asmx
moves to
http://newsubdomain.oursite.com/oldservice/aservice.asmx
I then want http://oldservice.oursite.com/ to map to http://newsubdomain.oursite.com/oldservice/
How do I do that?
Set a redirect on the old virutal directory in IIS to the new location.
Open IIS, click on Home Directory tab, then select "redirection to a url"
精彩评论