PDA

View Full Version : Add "NOINDEX, NOFOLLOW" tags to all pages with ? in the URL


PageUp
10-30-2005, 10:17 AM
I need a script that would add "<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">" to the page if the URL contains a question mark (?). Is this possible and what would the syntax be?

The reason why I would need this is that I use a plugin that rewrites URLs so most of them are static. The problem arises when the post per page value is different. Then the URL contains ?pp=10 at the end and I would like to prevent search engines to index such pages.