Barry Hand - Google Adwords, Online Marketing & Web Analysis

Online Marketing & Web Analysis
  • rss
  • Home
  • About Me
  • Tools
  • Google Adwords

Canonical URLs and how to avoid them using redirects.

April 28, 2007

Sometimes if domains are incorrectly setup, the domain urls www.domain.com and domain.com are considered by search engines as separate pages. As both pages are indexed by search engines, you may be penalised for duplicate content (bad).

To avoid this, you can redirect all traffic to one standard URL, a canonical URL. Canonical means ’standard’ or ‘authoritative’

I’ve implemented two simple methods around this.

1. Mod Rewrite in .htaccess

This is apache server specific, create or amend your .htaccess file with

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

This enables the Rewrite Engine (line1) while a condition on line2 comes into play when people access barryhand.com , this is also case sensitive [NC]

The 3rd line redirects to www.barryhand.com using a permanent 301 redirect

2. Google Preferred Domain

Google allows you to control your preferred domain from their excellent webmaster tools section. A whole host of goodies and stats are also available once you verify your site ownership.

Enabling both these methods will assist in search engine optimisation , for more information see here -

  • A Summary of 301 Redirects
  • MSN’s Google PageRank of 2 and Canonical URL Problems
Categories
SEO
Comments rss
Comments rss
Trackback
Trackback

Irish Political websites not hosted in Ireland »

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Me

Barry Hand is a Irish web professional specialising in online marketing, web analysis, and internet technologies.
View Barry Hand's profile on LinkedIn Google Adwords Professional

Categories

  • Google (10)
    • Adsense (1)
    • Adwords (4)
    • Analytics (5)
  • Marketing (4)
  • Search Analysis (4)
  • SEO (2)
  • Social Networking (3)
  • Usability (2)
  • Web Design (1)
  • Websites (13)
  • Work (3)
Pharmaceutical Research and Manufacturing Chemical free sensitive skin care