I'm looking for a way to detect for paginated blog listing pages.
For example:
website.com/blog/topic/thetopic/2
website.com/blog/topic/anothertopic/3
website.com/blog/page/2
website.com/blog/page/3
The following examples are fine and I don't want them to be included:
website.com/blog
website.com/blog/topic/thetopic
website.com/blog/topic/anothertopic
I just want to be able to add a noindex meta tag on anything deeper than page 1 for these listings. Anyone have a way to identify them with an if statement?