Hi,
We have a long standing issue that was pointed out by the firm doing our SEO. I thought it was the responsibility of GoDaddy (acts as registrar) to solve this but they say it is not.
I look here and see some DNS options but it’s blank. Is Digital Ocean the DNS host? How do I fix this?
**"Duplicate sites
There are two available versions of this site — the non-www version and the www version. This causes internal duplicate content and confusion to visitors and Google. We recommend ordering a canonical domain implementation to redirect the secure non-www to the secure www version of the site."**
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey Beau,
First off, let’s break down the problem: you have two versions of your site — one with “www” and one without.
This can indeed cause confusion for visitors and search engines, leading to potential SEO issues but is quite easy to fix.
Who’s Responsible?
Steps to Fix the Issue
Identify Your DNS Host:
whois
command or an online tool like https://who.is/. This will show you where your active DNS zone is and where you can manage your DNS records.Set Up Redirects:
Example for Nginx:
Example for Apache:
Let me know if you have any questions.
- Bobby
Heya,
It seems like you have two versions of your website if I understand correctly. What you’ll need to do is just redirect your domain from http to https. Or even more secure non-www to the secure www version.
Now, I am not sure whether you use Apache or Nginx so here is for both:
Apache Configuration
To redirect non-www to secure www using Apache, you need to edit your
.htaccess
file or your Apache configuration file. Here is an example using the.htaccess
file:Nginx Configuration
To achieve the same redirection with Nginx, you will need to modify your server block configuration. Here is an example: