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

stargatesg1's avatar

domain access

In Laravel Forge how can i set it up so that i can access my domain by typing www.mydomain.com and mydomain.com without the www. Or is that something i need to do in Digital Ocean?

0 likes
1 reply
ctroms's avatar

You can do that in your DNS.

You probably already have an A record for mydomain.com that points to your Forge server.

To also resolve www.mydomain.com you can create a CNAME for www. and point that to mydomain.com.

Now your DNS will resolve www.mydomain.com to your Forge server.

Please or to participate in this conversation.