Web Hosting Talk







View Full Version : multimple domains on a single server


e-pants
02-18-2004, 09:59 AM
I am setting up my personal sites on a single shared web hosting service. I have three domain names all pointing to the same web space. I have split my webspace into three seperate folders. One for each domain. Each domain folder has an index page. The web space is a unix server with php enabled. My Host allows me to point up to five domain names to my webspace.

My question... At the moment, I am forced to have a single index page, where the visitor has to choose which website to go to.

This isn't ideal, and I'd like to find out if there is a way to automatically direct visitors to the relevent index page according to what address they type in their browser address bar.

Any help would be greatly appreciated as I am quite new to creating websites.

Cheers,
Simon.

stdunbar
02-18-2004, 11:33 AM
Simon,
You could handle this with a redirect (sending a HTTP 301/302 code based on the Host: header). But I'd first ask your hosting provider if they support name based virtual hosting. Since they are using Apache it is very well documented how they could set this up. This would likely be a better answer.

e-pants
02-18-2004, 11:39 AM
Thanks very much for your reply :) I'll look into both solutions.