Click here to Skip to main content
14,974,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
Can we possible to change the Domain name using URL rewriting in MVC or in IIS?.Suppose the website address is like,this need to be changed according to the client's choice like

Please let me know is it possible?


1 solution

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.
soumyaraj 14-May-15 7:51am
Suppose If we have 2 domains like and and our application hosted for both domains, But there is only one login controller like
Here if the client hit the url like '' need to hit the login controller and login action in the application.Can we achieve via URL rewritting?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900