More sites on one server/host

Permalink 1 user found helpful
Hi folks

I have recently bought a domain aswell as unlimited hosting athttp://www.hostpapa.co.uk.

My domain ishttp://www.mikas-emil.com

I want to be able to upload several C5 sites on the server, but now I have encountered the first problem.

If i make new folders inside my www/ folder for every C5 site I want to make i can not use my newly bought domain.. or can I???

Example:

1)
http://www.mikas-emil.com should point to the folder www/mikas, and still show "www.mikas-emil.com" in the browser..

2)
http://www.anotherdomain.com should point to my server folder www/anotherdomain and show "www.anotherdomain.com" in the browser.

What is the best way to get there?

the only option I have found i cPanel for example 1. is to redirect my domainhttp://www.mikas-emil.com tohttp://www.mikas-emil.com/mikas.. but then it shows "www.mikas-emil.com/mikas" in the browser also.. And that does not look as neat as I want it to.

The other option I see is to put the C5 installation in the root - in the "www" folder.. But does this eliminate the option to do example 2. ?

Hope some of you can shed some light on this issue for me

Best
Mikas

Mikas
 
Mikas replied on at Permalink Reply
Mikas
No replies? :(
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
All of this is really to do with your host setup. Once you have the host setup sorted out, you can have multiple C5 installs each in their own subfolders with their own domains, or subdomains of a single domain. Or you could have 1 C5 install serving a number of domains.

But all that is later. What you have to do now is get your host directory structure and domains set up right. It would be the same problem for static html pages or any cms.

The first trick is never never ever never ever have your domain name mapped to the root directory of your web space.

Create a directory structure like
/webroot/my_sitename/content/
and map your domainhttp://www.mysitename.com to that directory.

This means that you can now do 2 things:
1. Have another domainhttp://www.myothersitename.com mapped to the directory
/webroot/my_other_sitename/content/

2. In the future work on a new version of your existing site in parallel,http://www.new.mysitename.com at directory
/webroot/my_sitename/content2/

To make this work, you need to understand how to map and setup domains and subdomains in your web hosts control panel. ie. Host Setup.

Note, none of the above is specific to Concrete5. Its just general good planning for any long term web project.