Making both APEX and WWW to work

List view

How to Configure Both Apex Domain and www, So Your Site Works in Both

If you have configured your site as www.yourdomain.com, you might expect that typing the apex domain (yourdomain.com) should also work.
That’s incorrect.
Your site should NOT work in both www and apex.
If your site works in both, Google will consider them duplicates. Google will index both variations, causing them to compete against each other, resulting in duplicate content and reduced rankings.
So, what should you do then?
If your site is www.yourdomain.com, when a user types yourdomain.com, it should redirect to the www version.

How to Set Up Domain Redirects

Most DNS providers offer options like Domain Forwarding or Domain Redirects. Here are some links for popular DNS providers:

Cloudflare

This is an example of how we’ve set redirect from www to apex domain for our own bullet.so website
This is an example of how we’ve set redirect from www to apex domain for our own bullet.so website

Namecheap

GoDaddy

 
By setting up these redirects, you ensure that all traffic to your apex domain is seamlessly redirected to the www version, maintaining a single, consistent URL structure for your site. This helps avoid duplicate content issues and improves your site's SEO.