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.
 
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,...

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.'
 
Back
Top Bottom