Mobile app version of vmapp.org
Login or Join
Bethany197

: 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

@Bethany197

Posted in: #CanonicalUrl #Seo

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Bethany197

2 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

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/" />

10% popularity Vote Up Vote Down


 

@Jennifer507

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme