[wp-hackers] prevent indexing of page 2,3 and so on
Jeremy Visser
jeremy at visser.name
Sun Oct 24 12:56:41 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alex Hempton-Smith said:
> Just hook into the <head> with wp_head, and use a conditional statement in
> that function:
Call me old-fashioned, but wouldn't adding this line to robots.txt suffice?
Disallow: /page
(Yes, you'll need to hook into do_robotstxt to add that line, but that's
left as an exercise to the reader.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkzELQkACgkQvs6Qqs8TxBqbbwCfXUzA9FIvT6OlOd7/KJI2un8/
fZQAoLEXu8pMnEepa/m1xyOtDX0QAOIm
=SbpT
-----END PGP SIGNATURE-----
More information about the wp-hackers
mailing list