开发者

How do I remap a URL?

开发者 https://www.devze.com 2023-01-11 04:35 出处:网络
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 clien

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"

0

精彩评论

暂无评论...
验证码 换一张
取 消