#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
    Stumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,409
    Rep Power
    4538
    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
    ======
    It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

IMN logo majestic logo threadwatch logo seochat tools logo