SEO tip for canonical urls

Search engines see different domains as different sites. For instance:” is different from “”

The www part of the url (referred to as the subdomain) is important when considering how to structure your URL’s. So its important to make all of you URLS redirect to one place. Below is a chunk of code you can add to your .htaccess file in your root directory to clean up this multi-domain issue known as Canonicalization.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^socialpatterns\.com$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

To learn more about what this code means and what it does checkout SEO marketing tips from