Click here to Skip to main content
11,802,442 members (70,996 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET IIS domain
I am the webmaster for an orgnaization that has a preferred domain and a subdomain. There are also several related domains (variations of the name) that are pointed to the preferred domain. We use ASP.NET on IIS7 and 2 loading balancing servers.

When I code a link from the subdomain to the preferred domain, and do not preface it with the "www", the server rewrites the domain to one of the related domains.

Preferred domain = (without the "www" prefix)
Subdomain =
Related domain =

Link code in subdomain =
What gets served =
If the coded link contains the "www"
it gets served exactly like that and does not get rewritten.

We prefer to not use the "www".

Any idea why this is happening and how to prevent it? I am not the server manager so please be gentle.
Posted 1-Mar-12 2:53am

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

  Print Answers RSS
0 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CPallini 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,645
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 1 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100