带有波浪号的根路径 “~”不将大写更改为小写
我的项目设置了虚拟路径“/MyVirtualPath”,在 IIS 6 (W2003) 中创建虚拟目录,一切正常。
然后,为了更好地使用 Google Analytics,我更改了虚拟路径“/myvirtualpath”,并将所有 redicecciones 和链接更改为小写。还应用类“aspnet mvc 中的小写路由 url< /a>”并且工作完美。
问题我必须修改 IIS 中的虚拟目录,删除虚拟路径“/MyVirtualPath”并创建新的“/myvirtualpath”,但在所有情况下我都使用波形符“~”或在其中创建“RedirecToAction”(应该采取“LowercaseRoute”),继续维护虚拟路径“/MyVirtualPath”。
例如,如果我在浏览器中看到 HTML 源代码,请参阅“/MyVirtualPath/Content/Site.css”而不是“/myvirtualpath/Content/Site.css”。
谢谢
I have my project set up with the virtual path "/MyVirtualPath", create the virtual directory in IIS 6 (W2003) and everything works fine.
Then to work better with Google Analytics I change the virtual path "/myvirtualpath" and change all redicecciones and links to lowercase. also applies the class "lowercase route urls in aspnet mvc" and works perfectly.
The problem I had to modify the virtual directory in IIS, delete virtual path "/MyVirtualPath" and I created the new "/myvirtualpath", but in all cases I use tilde "~" or where I make a "RedirecToAction" (which should take "LowercaseRoute"), continues to maintain the virtual path "/MyVirtualPath".
For example, if I see the HTML source code in the browser, see "/MyVirtualPath/Content/Site.css" instead of "/myvirtualpath/Content/Site.css. "
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)