SEO Canonicalization using htaccess

August 14, 2010

Hola webmaster… since you are here I assume you are looking for a solutions to redirect duplicate looking and sounding pages on your website to a global format. In the next 3 minutes you are going to do exactly that. Read on…

By the way did you know search engines see , and as three separate pages. So when the search engine arrives on the site it get confused.

SE Bot: What the hell? Which one is the right URL? Ok let me pick one which ever i think is good.

What you should do? You need to 301 redirect all the versions to one global version.

Ok enough Rambling Mr Pattanaik, tell me how to do it.

Well yeah. I use the htaccess method in apache servers. Here is how to do it for your website using htaccess.
Step 1: Create an HTACCESS file. Open notepad save the file as .htaccess …thats it.
Step 2: Add this code to the file in editor.

Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^
RewriteRule (.*)$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$$1 [R=301,L]

Step 3: Thats all. Upload the file to your root directory of the domain. Dont worry its not a virus or spam bot I am asking you to upload.

Now Share this post if you find it helpful.

Latest Posts

Rooturaj Pattanaik

Technology & Business Consultant with customers across 6 countries. A doting father and loving husband writing about various topics like Technology, Travel, Society, Digital marketing, Investment consulting etc.


I have started a new project called the Indic Dictionary. This will cover popular household words in India and what they are called in various languages. Eventually, I will make this an easy to use app where where people can easily find something like “hing in English” or “Tea Tree Oil in Hindi” or “carrom seeds in Urdu”.
Previous Story

Need Content Writers | Who can write ?

Next Story

Facebook is cracking down on free promotion | kills profile boxes

Latest from Search Engine Optimization

Go toTop

Don't Miss