Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Resolve Canonical Issue? (301 redirect)

    • 1
    • 2
    • 1
    • 1
    • 0
    • 0
    • 1
    • 0
    • 4.11k
    Comment on it

    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 www.abc.com and abc.com (without www) it show same content without redirecting it to abc.com or 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 www.abc.com and user enter directly abc.com in browser it will be redirected to 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".

    alt text

    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 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)

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

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

    For more help please visit the web link below
    http://www.webconfs.com/how-to-redirect-a-webpage.php

    How to Resolve Canonical Issue? (301 redirect)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: