We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Pagination and seo duplicate content

How Do I?

restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Hi,

Which is the best way to prevent duplicate content for pagination pages in EE?

Thanks

       
Pedro Guimaraes's avatar
Pedro Guimaraes
170 posts
10 years ago
Pedro Guimaraes's avatar Pedro Guimaraes

It depends on how you’re doing your titles/meta descriptions, etc… Here’s an example of what I do:

<title>{if layout:title != ''}{layout:title}{/if}{if layout:title_two != ''} - {layout:title_two}{/if}</title>

Then in my paginated template I call the template layout like this:

{layout="site/.html-layout" title="News"]

And then for the pagination:

{paginate}
{if current_page != '1'}
{layout:set name="title_two"}Page {current_page}{/layout:set}
{/if}

This produces a title like “News - Page 2”

       
restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Hi Pedro,

Thank you for your reply. I will try that code.

Jose

       
restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Pedro,

Do you know any other way to do anything similar with no layout usage?

       
Boyink!'s avatar
Boyink!
5,011 posts
10 years ago
Boyink!'s avatar Boyink!

Google isn’t going to ding you for content that appears duplicated from pagination links:

http://searchengineland.com/googles-matt-cutts-duplicate-content-wont-hurt-you-unless-it-is-spammy-167459

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.