Skip to content

Instantly share code, notes, and snippets.

@weppos
Created November 24, 2009 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save weppos/241979 to your computer and use it in GitHub Desktop.
Save weppos/241979 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} !^id=([0-9]*)$
RewriteRule .* - [env=send_x_robot:true]
Header set X-Robots-Tag "noindex" env=send_x_robot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment