Click here to Skip to main content
15,915,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a public website www.xyz.com and i would like to change the domain name as www.abc.com only.

I don't want to change the source. When ever user enters the www.abc.com it should pick the source of www.xyz.com, but the url display should be in www.abc.com only.

I already purchased the www.abc.com.

Please let me know how to achieve this. website is done on C# .net.

Thanks
Prasanna
Posted

There could be something interesting for you in here:
ScottGu's Blog - Tip/Trick: Url Rewriting with ASP.NET[^]
 
Share this answer
 
When someone goes to "www.myepicsearchservice.com" I want them to actually be using 'www.google.com' but the url will show www.myepicsearchservice.com"

Hopefully you can see why this is impossible :)
 
Share this answer
 
Comments
Member 3873034 28-Jan-16 7:09am    
I am not clear what you are trying to say...
F-ES Sitecore 28-Jan-16 7:11am    
I'm saying that what you want to do can't be done.
Member 3873034 28-Jan-16 7:15am    
thank you
If the DNS record for both sites points to the same computer, you can have a single IIS site respond to requests for either domain. You just need to add a binding for the relevant IP address(es) to your site.

However, this will have a negative effect on your site's Google rankings, as the two domains will be seen as duplicates. It's better to pick a single preferred domain, and redirect all traffic to that domain.
 
Share this answer
 

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