Skip to content

Instantly share code, notes, and snippets.

@dopsmain
Created March 23, 2016 20:18
Show Gist options
  • Save dopsmain/3e5d47661daa35c6ec06 to your computer and use it in GitHub Desktop.
Save dopsmain/3e5d47661daa35c6ec06 to your computer and use it in GitHub Desktop.
<?php
$page = preg_match("/p=/", $_SERVER['REQUEST_URI']);
if($page === 1){
return '<meta name="robots" content="index, follow"/>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment