2 Simple Tricks to Boost Your SEO By Eliminating Duplicated Content Penalties

Serving duplicate content can downgrade your SEO performance. You can use these 2 simple tricks to fix your URLs for good and give your SEO a nice boost.

Trick #1: Make sure all of your pages have a Canonical URL Tag

The Canonical link tag tells search engines the single URL to use for all versions of a given web page. There are many instances where this is relevant

  • When creating links with Google Analytics or when using other analytic packages you often make links with many variables in them. You will be creating back links to a page that are not unique and could result in a duplicated content penalty.
  • If you have a multi-part article you will want the "SEO Juice" to go to page one so you would make the Canonical link for the series always point to the first page
  • Your page takes dynamic arguments that only affect cosmetic aspects of the page, but will result in many unique urls, thus lowering their SEO value
Any instance where your site may have duplicated content, you can use a Canonical URL tag to tell search engines where the authoritative source of that content should be

 

Solution

Specify the permanent link to each page in each page's header area

 


 

if you are using SavviCMS this is as simple as adding this snippet to your header include file:

echo $PAGE->linkCanonical;

 

Trick #2: Only serve your website from one domain name

Can you access your website from multiple URLs? The most common example is accessing your site from www.mysite.com and mysite.com

You might think of www and your domain as a single domain name, but to search engines these could be treated as multiple URLs with duplicated content.

Fortunately this is a simple fix. There are many ways to approach it, but here are 2 examples:

Solution #1: PHP Code

Put this snippet in your global scope

if (php_sapi_name() !="cli")
{
	$mydomain = "www.savvior.com";
	if($_SERVER['HTTP_HOST']!=$mydomain)
	{
		$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
		header("HTTP/1.1 301 Moved Permanently");
		
		header("Location: {$protocol}{$mydomain}{$_SERVER['REQUEST_URI']}");
		exit;
	}
}

Solution #2: .htaccess file

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