I developed a website and from SEO point of view, the homepage of a website is available under three or more different URLs which accordingly poses a risk of duplicate content, since the same content can be accessed via different URLs.
for eg. my website is opening with below URL
https://www.domain.tld/index.php
https://www.domain.tld/
https://domain.tld/
Exact URL which is needed be like
https://www.domain.tld/
What I have tried:
for achieving the same i am using an .htaccess file with code given below:
RewriteEngine on
#Redirect non-www domain to www
RewriteCond %{HTTP_HOST} ^insider\.in$ [NC]
RewriteRule ^ https:
#Redirect /index.php to /
RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteRule ^ https:
I tried to redirect all duplicate URLs to one URL using the above .htaccess file code but it is not working, also I enabled all the file permissions in FileZilla but again no success.
Any help or reference will be appreciated, thank you!
note- website is hosted in cloud server using FileZilla