Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Team,

We have an query regarding re-writing url of website. Here is my requirement:
Let's suppose we have url of website is "www.abc.com". Now i need to re-write url as
"www.xyz.abc.com". Here you can see that, domain is same but "xyz" text is added with the url.

Note: we don't need to redirect url to "www.xyz.abc.com". website should open for "www.abc.com" but url should be "www.xyz.abc.com".

Thanks & Regards
Sunandan Dutt
Posted
Updated 22-Aug-14 2:47am
v2

1 solution

The most pwerful tool for this is URL ReWrite: [^]

From the description, I can't see why you couldn't simply use a server redirect configured in IIS. The user won't see this and there's no delay in loading the page.

URL ReWrite is very powerful and allows you to configure conditional behaviour using pattern matching.
 
Share this answer
 
Comments
sunandandutt 1-Sep-14 3:14am    
How can i set server re-direct in IIS. Can you please provide steps to achieve this task using server re-direct?
PhilLenoir 2-Sep-14 10:31am    
There are plenty of articles on the web: look at http://blog.pluralsight.com/iis7-redirect-windows-server-2008.

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