1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Rep Power

    How do i get my site to render as both www.site.com and site.com ?

    hi all-

    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
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Rep Power
    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
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo