// Domain name registered with godaddy Follow the following very simple steps- // On godaddy, go to My Domains --> Manage DNS 1. Create a CNAME with Alias Name: www Host Name: proxy.heroku.com 2. In the command line type, ping www.yourdomain.com. It should ping to proxy.herokuapp.com. If it does, you are good to go! 3. In the command line run, heroku domains:add www.yourdomain.com. If that fails run heroku domains:add www.yourdomain.com --app yourherokuapp 4. Now run, heroku domains:add yourdomain.com. 5. Now you have successfully set up your domain. //Creating a Naked Domain //A naked domain removes the need to write www in front of your domain name. This can be done by forwarding example.com to www.example.com //In the same window as above, Under forwarding box 1. 'Forward to' should be www.example.com (your domain) 2. 'Redirect type' should be '301 (Permanent)' 3. 'Forward settings' should be 'Forward only' 4. Make sure "Update my nameservers and DNS settings to support this change. (Recommended)" is checked. 5. Wait for some time! Cheers you have successfully done it :)
High Quality Courses
You trust Scotch tutorials and Scotch authors. This is the next level of learning from our esteemed author pool.