阅读背景:

从IIS中的嵌套应用程序的虚拟目录根中删除尾斜杠

来源:互联网 

I have a website with a nested application. Say the virtual directory is '/app' for the nested application. When a request is made to www.mysite.com/app, a redirect is made to www.mysite.com/app/, probably because the virtual directory is not empty. I have a rule set up in the nested app's web.config to remove trailing slashes from all urls, but this does not affect the root path of the nested application. Is there a way (maybe a setting in IIS) to rewrite or redirect to the root without the trailing slash? I have tried many rewrite and redirect rules to no avail.I have a website with a nested application. Say




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: