Resolve The Canonical Issue with The Help of 301 Redirect

Hello reader!

In this Blog I will cover the topic, Canonical Issue, There Consequences and how to Resolve and get rid from such issues.

So lets first start with,

What is Canonical Issue

When the same content is displayed by the one website in different url then there is a canonical issue. For example- your website is abc.com and while entering the url in browser by http://www.abc.com and abc.com (without www) it show same content without redirecting it to abc.com or http://www.abc.com means that one should be the preferred url either www Or without www.

Consequences of Canonical Issues

In such case Search Engine (Google, Yahoo, Bing etc) index both the pages one which includes www and other one without www (www.abc.ocm and abc.com) separately which will lead to content duplicacy and will penalize the webpage.

How to Resolve Canonical Issue

To resolve such issue you have to make one preferred url either www or without www.

For example if you take a preferred url http://www.abc.com and user enter directly abc.com in browser it will be redirected to http://www.abc.com.

Now the question comes how to make one preferred URL

To make one preferred url web developer have to implement (301 redirect code) URL Redirection via code htaccess redirect in at backend of the website and set the status as “moved permanently”.

How to Redirect to www using htaccess redirect

With the below code you can create a .htaccess file, which will ensure that all requests coming to i.e abc.com will get redirected to http://www.abc.com. The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

  1. Options +FollowSymlinks
  2. RewriteEngine on
  3. rewritecond %{http_host} ^abc.com [nc]
  4. rewriterule ^(.*)$ http://www.abc.com/$1 [r=301,nc]

Please use or take abc.com and http://www.abc.com with your actual domain/url name.

For more help please visit the web link below: Resolve 301 Redirect

Advertisements
Resolve The Canonical Issue with The Help of 301 Redirect

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s