ASP.Net部署 - URL简化 [英] ASP.Net Deployment - URL simplification

查看:73
本文介绍了ASP.Net部署 - URL简化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其中一个项目部署在IIS中,可以使用URL打开页面

One of project is deployed in IIS, and the page can be opened using the URL like that

http://myURL/aspnet_client/myProject/HomePages/HomePage_WhatisXXX.aspx



即,它转到项目的文件夹路径,然后获取.aspx。这就是我想要做的:摆脱/ aspnet_client / myProject / HomePages /并将URL简化为


namely, it goes to folder path of the project and then get the .aspx. That what I want to do: get rid of the /aspnet_client/myProject/HomePages/ and make the URL simplified like

http://myURL/HomePage_WhatisXXX.aspx;



谢谢你能否提示我。


Thanks if you can hint me.

推荐答案

试试 URL重写 [ ^ ]。



Http重定向 [ ^ 也可以帮助解决您的问题。
Try URL Rewrite[^].

Http redirects[^] could also help solve your problem.


除了URL重写之外,还有URL映射和URL路由。请参阅:

http://support.microsoft.com/kb/976111 [< a href =http://support.microsoft.com/kb/976111target =_ blanktitle =New Window> ^ ],

http://msdn.microsoft.com/en-us/library/cc668201%28v=vs .100%29.aspx [ ^ ]。



-SA
In addition to URL rewriting, there is also URL mapping and URL routing. Please see:
http://support.microsoft.com/kb/976111[^],
http://msdn.microsoft.com/en-us/library/cc668201%28v=vs.100%29.aspx[^].

—SA


这篇关于ASP.Net部署 - URL简化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆