: Confusion for specifying rel="canonical" for pages I read this link & even this also, but I am still confused. That's why I plan to ask here, Please confirm me with your answer. My doubt
I read this link & even this also, but I am still confused. That's why I plan to ask here, Please confirm me with your answer.
My doubt is I have two pages: GridViewPage.php & ListViewPage.php having same content. So according to this in which page I have insert this code <link rel="canonical" href="which url I should put here"/>.
And for opening GridViewPage.php page URL looks like: example.com/article/show/abdominal-exercises/abdominal-crunch/79/87/list/.
& for opening GridViewPage.php page my URL looks like: example.com/article/show/abdominal-exercises/abdominal-crunch/79/87/grid/.
Note: 79/87 are the dynamic database table id's.
More posts by @Bethany197
2 Comments
Sorted by latest first Latest Oldest Best
Something to note is that the url in the canonical tag should match your preferred version of your site, either www or non-www. So if your site is example.com then the canonical tag would be
<link rel="canonical" href="http://example.com/article/show/abdominal-exercises/abdominal-crunch/79/87/grid/" />
For a.com/listview.php to be indexed instead gridview.php, you will add the following to gridview.php:
<link rel="canonical" href="http://www.a.com/listview.php" />
And the opposite for the opposite.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.