How to create an alias path on local IIS?

不羁的心 提交于 2020-01-14 08:16:32

问题


Unfortunately searching the web didn't make me any smarter. I have a web application running under my local IIS 7.5: http://localhost/myWebpage/ Now I'd like to create an alias path pointing to the same application, something like http://localhost/myWebpageAlias/ (the application will change it's layout according to the different address).

How can I achieve this?

Thx for any tipps sl3dg3


回答1:


Try creating a new virtual directory under "Default Web Site" (or whatever site is serving 'localhost'), then point it to the same directory:




回答2:


Although it is too late answer. But to alias path, you can use the IIS URL Rewrite module to create a rule which maps one url to another. Visit here for details description.



来源:https://stackoverflow.com/questions/9431377/how-to-create-an-alias-path-on-local-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!