Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

patpaskoch's avatar

Creating a subdomain site with namecheap, digitalocean and forge.

Hello,

I tried to create a subdomain site with Namecheap, digital ocean, and forge. I tried to find tuts or other forum discussions about the topic but didn't found a solution or any hints. But it always redirects me from one site to the other, so if I want to access subdomain.domain it redirects me to domain. Or it also happened on the second try that if I want to access domain it redirects me to subdomain.

How I did it:

Namecheap, first I get the domain (domain) and set the domain custom DNS to: ns1.digitalocean.com ns2.digitalocean.com ns3.digitalocean.com

Forge, I created on forge the server with digital ocean and get the server IP address (forge-server-ip).

Digitalocean, I set the DNS for the domain and subdomain A subdomain.domain directs to forge-server-ip A domain directs to forge-server-ip NS koch-weblab.net directs to ns1.digitalocean.com. NS koch-weblab.net directs to ns2.digitalocean.com. NS koch-weblab.net directs to ns3.digitalocean.com.

Forge, I create 2 sites under the server I just created: first: domain and second subdomain.domain I stalled on both for the simple sake, WordPress.

But it always redirects me from one site to the other, so if I want to access subdomain.domain it redirects me to domain. Or it also happened on the second try that if I want to access domain it redirects me to subdomain.

Thanks for every tip

greetings patrick

0 likes
3 replies
Kikismedia's avatar
Level 5

get in touch with the namecheap , dugitalocean support they will resolve it for you,

2 likes
patpaskoch's avatar

Year i started with forge, and next would be digital ocean and Namecheap..... but

I don't know if it was that, but I installed both sites again and created a separate database for every WordPress install. I think with the installation of WordPress both domain and subdomain were using the same table ( where the URL a.s.o ).

thanks for the help anyway

1 like

Please or to participate in this conversation.