Some pages have two URLs which may be considered duplicate content by Google crawlers. When a users types a keyword google crawls the relevant pages and displays the results. ...If it finds the page with two URLs is confused which URL to pick
Hi,
Accessing same content via multiple URLs causes content duplication issue and it affects ranking. To prevent this duplicate content issue you should use "Canonical URLs". Canonical URLs tell the search engines that the URLs are actually one and same. For example, you have two links Link1 and Link2 which are pointing to the same page and you want Google to rank Link1 then use following Html tag
<link rel="canonical" href="Link1">
For more information, you can refer Google document on
Can u plzzz explain me where exactly i should write dat link tag
I alreadyy done broo but how to check wheather its wrking correctly r nt
The canonical tag is part of the HTML header on a webpage. This is where we place other SEO tags like title tag, meta description tag and the robots tag
Sample example structure will be like
<html> <head> <meta name="keywords" content="keyword content" /> <meta name="robots" content="INDEX,FOLLOW" /> <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css' /> <link rel="canonical" href="YOUR CANONICAL LINK" /> /* * Other stuffs */ </head> <body> /* * Body stuffs */ </body> </html>
The canonical tag will go in following file
MAGENTO_DIRECTORY/app/design/frontend/*/template/page/html/head.phtml
After placing this tag refresh the cache and check. Best of Luck
If you want to know about duplicate content and URL issues you can look in your Google Search Console or try a free trial on Moz and run a couple of scans.
If you have it enabled you will see the canonical link in the header of the page, you can inspect the page to see it.