我的网站的自定义URL [英] Custom URL for My Website

查看:73
本文介绍了我的网站的自定义URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经将ASP.Net站点部署在其中一台也具有一些计算机名称的服务器中.
我曾经像... http://xx.xx.xx.xx/MySite
那样浏览它 但是,我想退出该IP并提供一些文本(机器名称以外的其他名称,或者可能相同).我该如何实现.
另外,我无法更改主机别名.
谢谢
Sreenath.

Hi,
I have deployed my ASP.Net Site in one of the server which has got some machine name too.
I used to browse it like… http://xx.xx.xx.xx/MySite
But, I want to get out of this IP and give some text (other than machine name or may be the same) . How can I achieve this.
Also, I can’t change the Host alias name.
Thanks
Sreenath.

推荐答案

您需要 URL重写.

在这里阅读:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [
You need URL Rewriting.

Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]

OR

Read about, In ASP.NET 4.0: URL Routing[^]


这篇关于我的网站的自定义URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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