Savvior: 2 Simple Tricks to Boost Your SEO By Eliminating Duplicated Content Penalties
Tags
Programming
@SavviorWeb
The Savvior Family wishes you and yours a wonderful Christmas Holiday, filled with health, happiness, family and... http://t.co/6z2Y4tXReN
As we wind down a busy 2014, and before you head off to relax with our family this holiday season, we invite you... http://t.co/sgaoJGqKFE
As we wind down a busy 2014, and before you head off to relax with our family this holiday season, we invite... http://t.co/19yNO6XrcK
Interested in displaying videos on your site? Check out our top five reasons why we suggest using a service such... http://t.co/696T0BI6Wq
Yesterday we shared the top iOS apps for this year, now let's look at the top Marketing books:... http://t.co/Ldby54sGou
Yesterday we shared the top iOS apps for this year, now let's look at the top Marketing books:... http://t.co/qtkPrfmzxP
2 Simple Tricks to Boost Your SEO By Eliminating Duplicated Content Penalties
Development
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
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
<link rel="canonical" href="http://http://www.zjjv.com///blog/5-benefits-of-responsive-design" />
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 http://www.zjjv.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 = "http://www.zjjv.com/";
if($_SERVER['HTTP_HOST']!=$mydomain)
{
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://http://www.zjjv.com//
RewriteRule (.*) http://http://www.zjjv.com///$1 [R=301,L]
Please enable JavaScript to view the comments powered by Disqus.