January 13th, 2010, 09:33 PM
How do i get my site to render as both www.site.com and site.com ?
i am trying to figure out how can i get my IIS7 server to host the same directory of files for www.mysite.com and also mysite.com
right now it seems like i can only get it working with one of the other. is there some way to do this with host headers or host files?
i've been playing around with both to no avail.
thanks for any help
January 14th, 2010, 12:15 AM
Fix this in DNS by having a host record for both the bare domain name and he www.<domain name> so both will resolve to the same ip. Host headers would typically be for when your server is on one IP but you want to treat the two url's as independent sites, i.e., if you wanted different files for the bare domain name vs. www
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi