Welcome! Log In Create A New Profile

Advanced

Redirecting All Traffic to the Correct Domain Name?

Posted by clairejen 
Redirecting All Traffic to the Correct Domain Name?
August 01, 2017 04:39PM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready