Mobile app version of vmapp.org
Login or Join
Margaret670

: How to add naked domain (without www) on GoDaddy deployed via Heroku? I have a domain that's been deployed via Heroku, and is up and running fine with the www. But if I go to the domain

@Margaret670

Posted in: #Cname #Dns #DomainForwarding #Godaddy #Heroku

I have a domain that's been deployed via Heroku, and is up and running fine with the But if I go to the domain without the www, it does not render correctly. I tried adding both domains on Heroku, with www and without www, but unfortunately it still does not work.

Also, I tried following step two on here but continued to get an error: An unexpected error occurred. If this issue continues, contact support.

How can I add a naked domain to GoDaddy to forward to my web deployed on Heroku like my domain with www?

First Description GoDaddy (Only manually added the Heroku URL to CNAME www and Domain Forward to Heroku URL).

Second Description DNS Target set to Heroku URL and Domain on Heroku (Have one row for www and other without www).

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Margaret670

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

There are two ways. Either use URL forwarding or you can use a redirect in your .htaccess file. Try URL forwarding first.

URL Forwarding

To get this to work, go to the GoDaddy domain information and set forwarding to example.com.
.htaccess method

RewriteEngine on #if host ==domain.com
RewriteCond %{HTTP_HOST} ^domain.com$ #and uri==/mypage
RewriteCond %{THE_REQUEST} /mypage #redirect the request to app-heroku.com RewriteRule ^(.*) app-heroku.com [P]


This will force people who do not use the non-www to the
Depending on your hosting (cpanel/plesk) Here are the steps. godaddy.com/help/redirect-urls-with-your-hosting-account-512‌​0

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme