Hi there,
I am hoping someone can help with the issue I am having with duplicate content. I did a site audit on SEMrush and it has flagged duplicate content/meta issues for the same page.
See below:
https://www.kollect.ie/index.php
https://kollect.ie/index.php
https://www.kollect.ie
https://kollect.ie/
https://www.kollect.ie/
So I have no htaccess file to do a simple 301 redirect, what is the alternative to fix this? I need to redirect all traffic to the correct domain name. We are choosing non www.
Is this correct code below and if so what do I do change in it?
server {
listen 80 default_server;
listen 443 ssl default_server;
server_name _;
return 301 $scheme://www.domain.com;
}
I appreciate any help on this.
Thanks,
Claire.