Welcome to WebmasterWorld Guest from 23.21.38.201

Forum Moderators: lorax & rogerd

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)

10+ Year Member



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)

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



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

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month