Click here to Skip to main content
15,880,651 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 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
Posted

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.
 
Share this answer
 
Comments
soumyaraj 14-May-15 7:51am    
Suppose If we have 2 domains like abc.com and abc1.com and our application hosted for both domains, But there is only one login controller like abc.com/login/login.
Here if the client hit the url like 'abc1.com/Memberlogin' 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