Forcing site to redirect to www from non www

If you're having issues with Duplicate Content being shown on Google, you can create a redirect in your .htaccess file which is built in the PinnacleCart Admin. This article will show you how to do just that. 

Applies to Version(s): 3.6.4 - 3.8.2r2

Why I would need to force the URL to www from non www?

Note: This can happen with Bing, Yahoo and Google Webmaster Tools, other may apply as well

Duplicate content generally refers to substantive blocks of content within or across domains that either completely match other content or are appreciably similar. Mostly, this is not deceptive in origin. Examples of non-malicious duplicate content could include:

  • Discussion forums that can generate both regular and stripped-down pages targeted at mobile devices
  • Store items shown or linked via multiple distinct URLs
  • Printer-only versions of web pages

If your site contains multiple pages with largely identical content, there are a number of ways you can indicate your preferred URL to Google. This is called canonicalization and PinnacleCart handles it automatically for you. Another option is 301 redirects. This can be done to automatically forward non-www traffic to www traffic. For example, forwarding http://mywebsite.com to http://www.mywebsite.com.

How to find the area to edit.

Note: This may differ in different versions but is generally found in Search Engine Optimization

In your admin area, go to Marketing > Search Engine Optmization > go to the .htaccess Overrides section.

What you need to add to correct this.

Note: Redirects can be added for just about any page redirection

Copy and paste the following code into .htaccess Overrides.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

This is what it will look like when added:

 

Links to Related Articles.

301 Redirects

How Can I See If My Site Has Broken Links/404 Pages?

 

If you didn't get your question answered, please contact the Pinnacle Cart Support Team. To submit a ticket, go to the My Account drop-down menu at the top right of the admin area and select Support

Was this article helpful?
0 out of 0 found this helpful