Check out the Codex ‘Create a Network’ to try and understand more what is going on.
I think it’s advisable to setup the Network using a new install of WP, and then copy your theme/tables across.
The main site is the site that is hosted at the main URL – http://www.example.com – where as the subsite in the Network would have either – http://www.example.com/subsite1, http://www.example.com/subsite2, etc… OR subsite1.example.com, subsite2.example.com, etc… – You have to choose which of those set ups you want as part of the install.
Thanks for the response although I have tried to understand the create a network guide but still do not follow.
I would basically like each site to be in it’s own directory under the root (www or htdocs). i.e. nothing in the root.
The server does not have a main URL as it’s a dev box and is only known as localhost.
When you say setup the network using a new install WP… what do you mean. Copy the wordpress folder and files under the root? If so do I just leave it as is or do I have to configure it to be used? I have an existing site called bcp… where should that go?
I’m thinking it would be easier to just leave wordpres as is and create multiple sites in a hierarchical structure as with most web servers.
Ok, it seems we have crossed wires – what you need to do then is add Virtual Hosts to your server. I have several on my local FTP server (website, intranet, payments, etc) that each have a folder in the WWW folder.
To do that you need to add the following to the bottom of your httpd.conf file for each of the sites you wish to add, replacing the text in the curly brackets (and of course removing the brackets) with your desired values –
NameVirtualHost {IP address}
<VirtualHost {IP address}>
DocumentRoot "c:/WAMP/www/{folder_name}/"
ServerName {desired URL}
LogLevel debug
ErrorLog "c:/WAMP/www/{folder_name}/logs/error.log"
CustomLog "c:/WAMP/www/blog/{folder_name}/access.log" common
</VirtualHost>
You’ll also need to add an Alis your DNS for each of the sites you add. For example, if the above code had an IP of ‘192.168.1.190’ and a ‘ServerName’ of ‘dev.yourdomain.com’, you would need to add an Alias of ‘dev’ with the IP ‘192.168.1.190’.
Probably lots of reading for you to do, but I hope I’ve got you started in the right direction.
Thanks.