Click here to Skip to main content
15,948,339 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

I have a web site name "http://servername". Now I have created another subsite under the root site ("http://servername/test").
Now I want access this sub site using some other url i.e. if user types a URL say "http://xyz.com" in browser then internally it should redirect to the sub site "http://servername/test" and show its data but URL in the browser should be shown as "http://xyz.com".
Please let me know if I can achieve it by doing some setting on IIS level or writing some custom code.

Thanks in advance,
Alok...
Posted

Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]

OR

Read about, In ASP.NET 4.0: URL Routing[^]
 
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