Subdomain after domain not in front of domain

therealro

Verified User
Joined
Dec 20, 2012
Messages
8
Hi,

When i add a subdomain, i can access the domain like example.com/subdomain.
I want it to be subdomain.example.com.

What am i doing wrong?

Thanks in advance!

Greets, Robert
 
Hello,

Your DNS might be missconfigured, or you need to wait DNS changes to propagate. More detailed reply you'll probably get if you provide your real domain and sub-domain names.
 
@therealro, When you create a subdomain in DirectAdmin it will work both on example.com/subdomain and subdomain.example.com - have you tested both?
 
@therealro, When you create a subdomain in DirectAdmin it will work both on example.com/subdomain and subdomain.example.com - have you tested both?

Yes i tested them both. on the subdomain the error is: Oops! Google Chrome could not find subdomain.example.com but on there's the install wizard of my CMS.

Hello,

Your DNS might be missconfigured, or you need to wait DNS changes to propagate. More detailed reply you'll probably get if you provide your real domain and sub-domain names.

There is a install wizard on the domain, i dont want people to do bad stuff to it ;)
 
Well everything has been said already; this is normal and you probably just have to wait for the DNS.

But if you want to hide it for public, you could just make it private by using htaccess for example.

DirectAdmin can do this for you, go to 'Password Protected Directories'.

I'm pretty sure this will work for both example.com/subdomain and subdomain.example.com

Also you could just be quickly to install the CMS, seems like less trouble to me.
 
As has already been sayd, is a DNS error...

Ive tested all your 3 nameserver with dig commands, no one of those "know" the A record for demo.

Are you're nameserver based on DirectAdmin?
If yes, are synced with the server where you did add the domain/subdoamain?
If no, did you synced the server hosting the domain with nameserver?
OR
If no, did you remember to go to domain dns management (whereever it is) and add the A record for "demo" ?

PS Keep in mind that provide real data from first post give real solution from second post and not just guest. Now that you did provide the domain i was able to really check the issue.

Regards
 
The domain is registered on the domain registars nameservers, they offer the option to sync: https://www.transip.nl/vragen/105-transip-secondary-draaien-voor-domeinen/

A few options:
- The quickest/easiest fix would be creating the subdomain in their control panel
- You could setup your own nameservers, change the nameservers in the domain so you don't use theirs, but your own. Note that if you only have one physical server, keeping theirs is still best in case of downtime
- You can setup the sync with them so subdomains/any DNS changes you make in DA will be transfered to them automatically
 
The domain is registered on the domain registars nameservers, they offer the option to sync: https://www.transip.nl/vragen/105-transip-secondary-draaien-voor-domeinen/

A few options:
- The quickest/easiest fix would be creating the subdomain in their control panel
- You could setup your own nameservers, change the nameservers in the domain so you don't use theirs, but your own. Note that if you only have one physical server, keeping theirs is still best in case of downtime
- You can setup the sync with them so subdomains/any DNS changes you make in DA will be transfered to them automatically

I'll take the quickest/easiest way for now i guess, even though i dont have a physical server. Just a knowledge issue for now.

For compleetmarkt.nl i made a A record to the ip of my server, but i cant do this for a subdomain demo.compleetmarkt.nl since that is on the ip adres right?
 
You just need to make another A record for the subdomain. Enter demo in the left input, choose A, then enter the same IP address in the right input. All domains or subdomains are on the same IP address of your server (or VPS it seems), unless you have multiple IP addresses and choose to use another.
 
You just need to make another A record for the subdomain. Enter demo in the left input, choose A, then enter the same IP address in the right input. All domains or subdomains are on the same IP address of your server (or VPS it seems), unless you have multiple IP addresses and choose to use another.

I tried it, and ill let you know within 24 hours if it worked. Thanks a lot!
 
Code:
dig @ns2.transip.eu demo.compleetmarkt.nl
dig @ns1.transip.nl demo.compleetmarkt.nl
dig @ns0.transip.net demo.compleetmarkt.nl

Regards
 
Back
Top