Mobile app version of vmapp.org
Login or Join
Sims2060225

: Forward naked domain with URL path for my Google Domain I purchased a domain through Google Domains and I am hosting my app on Heroku. I would like users to be able to access my app through

@Sims2060225

Posted in: #Dns #Domains #Google #GoogleApps

I purchased a domain through Google Domains and I am hosting my app on Heroku.

I would like users to be able to access my app through the naked domain, but Google Domains does not allow CNAME's to be set for the naked domain. They have an option that allows "Subdomain forwarding", however, when that is set, the URL path is dropped.

For instance, if I set up "Subdomain forwarding" for the naked domain and I go to example.com/123, it redirects the user to example.com.

How can I forward both the domain and the path?

10.06% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

6 Comments

Sorted by latest first Latest Oldest Best

 

@Lengel546

Under the domains dashboard, you can set how your naked domain is treated and you can redirect the naked domain to the page that you want.

You can check out the step-by-step details here: support.google.com/a/answer/2518373?hl=en
There are also options under subdomain forwarding that you can use. First, you add the CNAME to your list of synthetic records. Then, select a 'Subdomain forward' from the list of synthetic records that you have. In this case, you want to choose the CNAME you just added. You can add and edit synthetic records as needed as well. Turn on path forwarding, and other options.

You can check out the details here: support.google.com/domains/answer/6072198?hl=en

10% popularity Vote Up Vote Down


 

@Ogunnowo487

Subdomain forwarding has a "Forward path" option now.

10% popularity Vote Up Vote Down


 

@Voss4911412

Google support helped me.

Add cname for www
Add synthetic record @ to www.yourgoogledomain.com (change yourgoogledomain to your domain)

Works like a charm.

10% popularity Vote Up Vote Down


 

@Ravi8258870

It took me a while, but I figured this one out. It's a 2 step process (maybe there are other ways to do it, but this works for AWS, too):

1) Use a CNAME record to set your example.com to forward to the true hostname.

2) To configure the naked domain, add a "Synthetic Record", and set up a "Subdomain Forward." In the subdomain text box, enter the @ sign and nothing else.

3) Select option to 'Forward path'. That should do exactly what you want.

10% popularity Vote Up Vote Down


 

@Jamie184

As of right now, this is not possible, but Google Domains has a 5-day return policy, and once returned the domain becomes immediately available to be bought again from other registrars.
support.google.com/domains/answer/6000754
If this is a critical need, the domain can be returned and bought back from GoDaddy which does offer naked domain forwarding.
support.godaddy.com/help/article/422/manually-forwarding-or-masking-your-domain-name

10% popularity Vote Up Vote Down


 

@Deb1703797

Just make a .htaccess file:

# Rewrite EVERYTHING to the new domain
RewriteRule ^(.*)$ newDomain.ext/ [R=301,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme