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.
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!
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