How to create a subdomain?

Erquilon

Verified User
Joined
Jun 5, 2014
Messages
6
I want to create a subdomain; 'subdomain.example.com'. I tried the link 'Subdomain Management' under 'Your Account' on the user level, but this creates 'example.com/subdomain', where 'subdomain' is just a folder in the root of the domain.

I want my subdomain to be 'subdomain.example.com', and not 'example.com/subdomain'.

How do I need to do this? Via the 'Domain Setup'? And then just create another domain named 'subdomain.example.com'?

I'm a little confused about this.

Thanks in advance.
 
You did it the correct way, it's working as designed.

The directory is made as "example.com/subdomain" because you have to be able to put your data in a directory from which you want your subdomain to read from, so this is normal behaviour.
However, at the same time a DNS entry is made at the same time for subdomain.example.com so you will have your subdomain the way you requested and will also be reachable from subdomain.example.com.
 
I see, but when I try to go to 'subdomain.example.com' I'm getting a 'Server not found' error. If i'm going to 'example.com/subdomain' it's working though (it displays the index.php).

Do I have to do something else to make the domain reachable via 'subdomain.example.com'? It's already a couple of hours ago since I created the subdomain.
 
It's already a couple of hours ago since I created the subdomain.

It's 2 days ago now and the subdomain is still not reachable via 'subdomain.example.com' (Server not found), so I don't think It has something to do with domain propagation. I don't need to create the subdomain in the domain setup right?

However, at the same time a DNS entry is made at the same time for subdomain.example.com
Can I find that DNS entry somewhere? I think that something went wrong for some reason.

Thanks in advance.
 
UPDATE: It's working now. I had to add a DNS record for the subdomain on my webhosting account as well.
 
DirectAdmin should add it automatically. If you're hosting your DNS elsewhere you need to add it manually.

Jeff
 
Back
Top