使用MVC或IIS中的URL重写更改域名 [英] change the Domain name using URL rewriting in MVC or in IIS

查看:399
本文介绍了使用MVC或IIS中的URL重写更改域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们可以在MVC或IIS中使用URL重写来更改域名吗?。假设网站地址类似于abc.com/Home/Index,这需要更改根据客户的选择,如Clientname.com/Home/Index



请告诉我这可能吗?



谢谢,

Soumya

Hi ,
Can we possible to change the Domain name using URL rewriting in MVC or in IIS?.Suppose the website address is like abc.com/Home/Index,this need to be changed according to the client's choice like Clientname.com/Home/Index

Please let me know is it possible?

Thanks,
Soumya

推荐答案

您无法通过网址重写更改域名(想一想......如果你可以假装每个网站都是google \ facebook \paypal等),你需要发出一个重定向。
You can't change the domain name via url rewriting (think about it...if you could every site would be pretending to be google\facebook\paypal etc), you'll need to issue a redirect instead.


这篇关于使用MVC或IIS中的URL重写更改域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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