Post by maple-Lee » Wed Apr 18, 2018 2:19 pm

Dear all,

The following isnt consider duplicate content? if yes, how can i fix the following problem?, my website should be like https://www.mydomain.com

The website responds for 2 URLs.
1 times direct and 1 times with an URL redirection.

HTTP Status 301: https://mydomain.com/
HTTP Status 200: https://www.mydomain.com/

which .htaccess code should i edit?

RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]


RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php?\ HTTP/
RewriteRule ^(.*)index\.php?$ https://www.mydomain.com/$1 [R=301,L]


RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

New member

Posts

Joined
Fri Apr 10, 2015 11:38 pm

Post by thekrotek » Thu Apr 19, 2018 3:54 am

No, it's not a duplicated content.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by maple-Lee » Thu Apr 19, 2018 4:34 pm

IC. Thank you for answering my question.

New member

Posts

Joined
Fri Apr 10, 2015 11:38 pm
Who is online

Users browsing this forum: Semrush [Bot] and 77 guests