How to use canonical url

Discussion in 'Search Engine Optimization' started by sonika SEO, Apr 21, 2014.

  1. #1
    i want to know how to set canonical url. it use only homepage or we can set all the pages.i learned about something it was using for duplicate content on the site.please tell me how to set it.
     
    sonika SEO, Apr 21, 2014 IP
  2. moopy

    moopy Active Member

    Messages:
    223
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    63
    #2
    Hi,

    Add a <link> element with the attribute rel="canonical" to the <head> section of these pages:
    <link rel="canonical" href="http://blog.example.com/dresses/green-dresses-are-awesome" />

    Detailed information:
    https://support.google.com/webmasters/answer/139066?hl=en#2

    Good luck!
     
    moopy, Apr 21, 2014 IP
  3. carlo75

    carlo75 Well-Known Member

    Messages:
    129
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    130
    #3
    Yes I agree.
    For canonical url, you need to use them inside the <head></head> section of your site/blog, in a specific page with a specific title and link.
    Suppose you have a list page of people on your blog, that you can order by name, or surname, and every choice generate a specific scenario:

    LIST PAGE (title A)
    site.com/listpage (link A)

    LIST PAGE by NAME (title B)
    site.com/listpage/name (link B)

    LIST PAGE by SURNAME (title C)
    site.com/listpage/surname (link C)

    All 3 cases produce substantially the same content but ordered substantially.
    Canonical URL can manage this situation, for search engine, according to the following code:

    Page A
    <head>
    ...
    <title>LIST PAGE</title>
    <link rel="canonical" href="http://www.site.com/listpage"/>
    </head>

    Page B
    <head>
    ...
    <title>LIST PAGE by NAME</title>
    <link rel="canonical" href="http://www.site.com/listpage/name"/>
    </head>

    Page C
    <head>
    ...
    <title>LIST PAGE by SURNAME</title>
    <link rel="canonical" href="http://www.site.com/listpage/surname"/>
    </head>

    Hope this can help you.
    Regards
     
    carlo75, Apr 22, 2014 IP