After purchasing a domain from domain providers like Godaddy, Bluehost, Hostgator etc, one of the biggest problem which arises is that the website doesn’t open when we write only (yourdomain.com). However, it loads quickly when we use www with it like (www.yourdomain.com). Therefore, it is not good as many people don’t type subdomain which is (www) instead of it they write only youdomain.com but if the website doesn’t open then obviously it leads to a decrease in traffic from the world. So today I’m gonna tell you that how to redirect non www to www in a few and easy steps which are as follows:
1. Sign in to the domain provider:
In my case, I bought a domain from Godaddy. Click on the Sign in button, then you’ll be redirected to the dashboard.
2. Go to DNS Setting :
After signing in, under dashboard go to the DNS setting of your domain which is usually named as Manage DNS.
3. Forwarding the domain :
In the DNS Setting, scroll down and find the section named as Forwarding which is usually located at the end of the page. Now you’ll be given two options in Forwarding area.
leave sub-domain option as it is, go to the domain option and add your site with www.yourdomain.com to which you want to forward your non www domain (yourdomain.com). Set forward type permanent (301) and in setting set it to forward only and have a check mark on (update my nameservers and DNS settings to support this change). After that click on the save button.
4. Set up 4 A records that point to Google IP’s :
Add a new record with the type A and under host type @ and under points to type the following Google IP’s one by one and repeat the process until all four IP’s are entered.
When done, sign out of your domain provider ( e.g Godaddy).
5. Go to Blogger.com (Last Step) :
Finally, you are at your last step to set up redirection of non www to www. Go to blogger.com and open the settings panel. Under settings, open up the basic settings and locate the publishing section. Under publishing where we have our third-party domain setting, click edit as I did in the screenshot and check mark the redirect yourdomain.com to www.yourdomain.com and click save. You’re Done! 🙂
If you still have any issues, comment below and I’ll do my best to assist you 🙂