Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   rel canonical categories (/showthread.php?t=5969)

digitalcow December 25th, 2011 08:31 AM

rel canonical categories

Now I have added unique articles to the category pages for my categories, I am in danger of having duplicate content over paginated pages. What would be the easiest way to rel canonical all the pages of a product category back to page one? I only want the first page of a category indexed anyway.


Eric December 25th, 2011 09:09 AM


Add this to your Category's view > view properties > <head> elements

HTML Code:

[store.if page="off"]<link rel="canonical" href="[server.url type='fullpage']" />[/store.if]

envisionweb March 22nd, 2012 05:23 PM

Hmmm..that's not working.

I want to add it to the head of the view so that even when someone filters by price it still only has the original category url. [server.url type='fullpage'] just inputs the url in the address bar which is what I don't want.

ayorofrance June 20th, 2012 05:37 AM

Hi Eric,

I don't think your code above works as intended...

I use:

<link rel="canonical" href="[]" />
And this gives me canonical links which point back to the main category page on each page 2 - #

This ensures it's your main category page that gets the link juice and gets indexed...

With your code I think you will get canonical links that point to the page itself...

You will see

<link rel="canonical" href="" />

Which is not what you want...

You also want to restrict any articles/text you have on your category pages to only be shown on the first page...


<?php if (!empty($category->description)){ ?>
[store.if page="off"]
<?php } ?>

Just my two cents...

cashnow June 26th, 2012 08:49 AM

@ ayorofrance

I agree with you. But take a look at this:

And then the Video

Seems like the best way to handle is via rel prev next but it is not yet available in DFR.

Thanks for the tip!

cashnow July 1st, 2012 12:06 PM

After watching that video again, I am not sure rel=can a paginated series to the first page is a good idea. It seems like Google is saying only use it if the pages have the same content.

ayorofrance July 1st, 2012 12:26 PM

Yeah, a bit unclear on what's the best approach...

All times are GMT -5. The time now is 01:16 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.