Server with multiple sites incorectly directing visitors.

Hey there,

I'm the first one to admit I am no expert and fully expect this question to be a stupid one, but I would be none the less extremely appreciative of some direction.

You see I have a server serving two sites. A main one and a secondary one which is unrelated. When users type in the address of the secondary site in the form of "www.2ndsitename.com" the correct site comes up no problem. However, when users type in the address of the secondary site without the www... ie "2ndsitename.com" the browser automatically directs them to the home page of the main site.

I am guessing this is a method set up to catch users who enter an incorrect address, but I wonder if there is any way to stop this happening. Some advice on how to go about sorting this out would be fantastic.

Cheers,
robyn
LVL 1
robyndornAsked:
Who is Participating?
 
WadskiConnect With a Mentor IT DirectorCommented:
I am taking a punt that this is IIS and it is because of you have Site1 setup to (All Unassigned) IP Addresses.

There is a very quick and easy way to fix this.

Open IIS Manager
Navigate your way to the 2nd Website  (Computer Name > Web Sites > 2ndWebsitename
Right click and Select Properties
On the Web Site tab select the Advanced... button
Click Add
Now copying what is in the 'Multiple Identities for this Website' box that the new box has opened on top of:
IP Address (SAME AS OTHER)
TCP Port (SAME AS OTHER)
Host Header Value: 2ndsitename.com (not www.2ndsitename.com)

Okay and Apply your way out then restart IIS and it will be sorted.

If it is Apache I can provide the method too - just let us know!
0
 
murgroupCommented:
Ok, What OS and what webserver software? IIS, Apache?
0
 
robyndornAuthor Commented:
Wadski, I think you hit the nail on the preferbial :)

Thanks heaps!
0
All Courses

From novice to tech pro — start learning today.