SEO Content Top

Canonical URL, How to Fix it on Apache with mod_rewrite

May 5, 2009

Filed under: SEO 101 — Tags: — Nathan @ 10:02 pm

Tonights seo uk update is going to give you a tip which will allow you to fix the URL Canonicalisation, we have gone into what the problem is a number of times in the past, but never given you a definative howto on what you need to do to fix the problem, with an example direct from the source code of this very website!

Now for the disclaimer: Any work you undertake on your website is entirely done at your own risk, this is for information only and is as configured on this specific server. We are in no way liable for any damage you do to your business through using this information. If you decide to carry on reading you agree to do so entirely at your own risk.

The Code

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ukseoagency.co.uk
rewriterule (.*) http://www.ukseoagency.co.uk/$1 [R=301,L]

What do I need to do to make it work?

simply put the code form above in a file names .htaccess (case is important) and replace our domain name with your own in both instances

What do i need to do if it does not work

Delete the .htaccess file and get the professionals in

My webserver does not run apache – what can i do?

Read our upcoming guides for more information on your options

Related posts:

  1. Geo-location Search engines determine a websites geo-location in two main ways...
  2. Javascript Pop Up Boxes There are three kinds of Javascript popup boxes (also referred...
  3. Listening to Your Client When looking for an SEO provider you will come across...
  4. Page Speed Importance Since 2009, search engines have been paying more attention to...

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

SEO Content Footer