ASP.NET应用程序中的域重写 [英] Domain Rewriting in asp.net application

查看:55
本文介绍了ASP.NET应用程序中的域重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经实施了一个Web项目.
现在,我必须部署此站点.但是在此之前,我需要在我的应用程序中应用域重写".

下面是我想要的示例.

我的实际网址是: http://www.test.com

但我希望它显示: http://www.abc.com

我该怎么办?

请帮助我这真的很紧急.

在此先感谢您.

Hi,
I have implemented a web project.
Now i have to deploy this site. But before that i need to apply "Domain Rewriting" in my application.

Below is the example what i want.

My actual url would be : http://www.test.com

but i want it to display : http://www.abc.com

what should i do for this ?

please help me it is really urgent.

Thanks in advance.

推荐答案

您需要 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[^]


嗨.我找到了解决办法.
引用以下网址.

http://weblogs.asp.net/owscott/archive/2009/11/30/iis-url-rewrite-redirect-multiple-domain-names-to-one.aspx [
Hi. I got the solution.
Reffer following url.

http://weblogs.asp.net/owscott/archive/2009/11/30/iis-url-rewrite-redirect-multiple-domain-names-to-one.aspx[^]


Response.Redirect是一个要在页面加载事件中从asp.net页面执行的操作.但是,如果要服务器处理,则 http://www.xoc.net/works/tips/domain.asp [ ^ ].搜索相似的相关链接
Response.Redirect is the one if you want to do from a asp.net page on the page load event. But if you want server to handle then http://www.xoc.net/works/tips/domain.asp[^]. Search similar related links


这篇关于ASP.NET应用程序中的域重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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