I am trying to use the following code in my htaccess file to avoid duplicate content issues with the search engines.
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*\/index\.html
RewriteRule ^(.*)index\.html$ http://www.example.com/$1 [R=301,L]
The first part that rewrites example.com to www.example.com causes problems with Shopsite's backend and the functions like publish do not work. Does anyone know how to solve this? Thanks in advance for your help. By the way, Pair is my Shopsite host.
Craig