Canonical URL, URL structure, Mobile AL, Pensacola FL, New Orleans LA

(251) 422-6044

How Canonical URL's Work for SEO

Canonical URL How Canonical URL's Work for SEO

One of the things search engines are looking for today is originality. They want to serve searchers the original content and not give search results that are nothing but copy cat sites. For the most part this is a good thing, but there is one problem. Because of the way search engines see URL's they will mistake and as two different websites with the exact same content, thus giving both versions of the the URL demerits in their search score.

Here are some other examples URL's that search engines will see as duplicate content

Blogs and shopping cart systems often save the same page with different URL's
Your content is under two different categories on your web site
It makes sense to humans these three URL's should go to the same page but search engines see them as three separate sites.

So how do we fix this? We use Canonical URL's. The following steps ensure that the major search engines will see your site as original content.

1. Set your preferred domain in your webmasters account

You will have to manualy log into your Google and Bing webmasters account and tell them that and are the same.

2. Indicate the preferred URL with the rel="canonical" link element

Suppose you want  to be the preferred URL, even though a variety of URLs can access this content. You can indicate this to search engines as by putting the following in the of your page:

3. Use 301 redirects for URLs that are not canonical

Add the following to your '.htaccess' file in your sites root directory

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^index.html$ [R=301,L]
RewriteRule ^index.php$ [R=301,L]

4. Use a site map to tell search engines how to crawl your site

If your CMS does not already do so there are many free site map generators out there that will make your sitemap.xml file for you. Once you have your sitemap.xml file you will put it into the root directory of your site
Then log into your Google and Bing webmasters accounts and upload your sitemap with the prefered urls for each page on your site

5. Indicate how to handle dynamic parameters

Suppose your CMS uses session id's in the URL's such as this you can tell Google and Bing to ignore the variable session in your webmasters account. Now this link will always be seen as

6. Specify a canonical link in your HTTP header


Link: ; rel="canonical"

Google currently supports these link header elements for Web Search only. 

SEO Case Studies

Does Your Business Rank?

Get a free and instant scan across over 50 social networks and see where your business is listed.