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.25k
    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 and while entering the url in browser by and (without www) it show same content without redirecting it to or 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 ( and 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 and user enter directly in browser it will be redirected to

    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 will get redirected to 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} ^ [nc]
    rewriterule ^(.*)$$1 [r=301,nc]

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

    For more help please visit the web link below

    How to Resolve Canonical Issue? (301 redirect)

 0 Comment(s)

Sign In

Sign up using

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: