# How to Configure Both Apex Domain and www, So Your Site Works in Both
If you have configured your site as [www.yourdomain.com](http://www.yourdomain.com/), you might expect that typing the apex domain ([yourdomain.com](http://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](http://www.yourdomain.com/), when a user types [yourdomain.com](http://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
[Link to docs](https://developers.cloudflare.com/rules/url-forwarding/)

This is an example of how we’ve set redirect from www to apex domain for our own bullet.so website
### Namecheap
[Link to docs](https://www.namecheap.com/support/knowledgebase/article.aspx/385/2237/how-to-set-up-a-url-redirect-for-a-domain/)
### GoDaddy
[Link to docs](https://www.godaddy.com/en-in/help/forward-my-godaddy-domain-12123)
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.
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.
Most DNS providers offer options like Domain Forwarding or Domain Redirects. Here are some links for popular DNS providers:
Link to docs

This is an example of how we’ve set redirect from www to apex domain for our own bullet.so website
Link to docs
Link to docs
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.