Welcome to WebmasterWorld Guest from

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Adding rel- next and prev and canonical links on paginated pages

Plugins do it, but they slow the website.

12:29 pm on May 15, 2013 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 8, 2003
posts: 516
votes: 4

I am looking to add the following meta tags in the header.
<link rel="canonical" href="http://mywebsite.com/auto/page/2/"/>
<link rel="prev" href="http://mywebsite.com/auto/"/>
<link rel="next" href="http://mywebsite.com/auto/page/3/"/>

It is easy to add canonical tags on single pages, but a bit tricky for paginated pages.

Can anyone help me with the code?
5:36 pm on May 15, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
votes: 0

You'll want to read this: [codex.wordpress.org...]

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members