directory structure for subdomain

Soldato
Joined
18 Oct 2002
Posts
15,861
Location
NW London
Hi,

I have a website: domain: www.aicore.co.uk.

I have set up a subdomain: www.webclient.aicore.co.uk.

If I wish to place an index.html file in the subdomain:

1. what directory would this go in? The root directory is /
2. what would I type into the url bar in my web browser to access it?

I am with TSOHost.

Thanks.
 
Well, where's the sub-domain pointing to? If you'd like them to be two separate sites, then the second site where the sub-domain is pointing to, will have to setup so it answers to requests from webclient.aicore.co.uk

You'd then put your index.html in to the directory of the second site where the sub-domain is pointing to.

Sorry to be a bit vague, but that's generally how you'd do it.
 
Hi sorry.

I managed to sort this out about 30 minutes ago.

For those of you using TSOHost, I shall give you the procedure to upload files to a subdomain.

1. create the sub domain in the control panel (easy peasy).
2. then log into your new sub domain, in the control panel.
3. go to the ftp section and create a user name and password for yourself.
4. now use an ftp client, like filezilla to access the directory (using the username and password you created in step3).
5. the ftp client should log into the relevant directory, at which point you upload your files are normal.
6. access your subdomain with the following url: (assume that your main website name is 'www.animals.com'; and your subdomain is 'cats') url = 'cats.animals.com'. Do not prefix with 'www'.

My mistake was to try and create/access the sub domain directories, via the control panel. I don't think this is possible. While the control panel can be used to access the file of your main website, I believe that you need an ftp client to access the directories of a subdomain.

Anyway, all sorted.
 
Last edited:
For future reference, there's no standard way of doing this. Subdomain directory structure depends entirely on your host, their structure, and the underlying OS their servers run on.
 
Oh but you *never* have www. on the front with subdomains. "www." effectively *is* a subdomain of domain.com that just points at domain.com
 
For future reference, there's no standard way of doing this. Subdomain directory structure depends entirely on your host,...

Indeed.

During my research on the web last night, this is what I found and is the reason why in all my posts, I stated that I am using TSOHost.
 
I find that most people tend to add a 'www' to the start of urls, out of habit. Perhaps then, it would be best to create subdomains with a prefix of 'www.'
 
I find that most people tend to add a 'www' to the start of urls, out of habit. Perhaps then, it would be best to create subdomains with a prefix of 'www.'

No, it wouldn't. Is anyone even going to manually type it in? Not likely. They'll either click a link to it or just type the name into google and locate it that way. Leave off the www. for maximal tidiness!
 
Back
Top Bottom