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

    Join Date
    Nov 2003
    Posts
    105
    Rep Power
    11

    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
    Posts
    14,444
    Rep Power
    4539
    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
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo