Code:
<?php
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
echo '<meta name="robots" content="noindex,follow">'. "\n";
}
?>
How do I add this code into Vbulletin 3.89 Header?
--------------- Added [DATE]1455054033[/DATE] at [TIME]1455054033[/TIME] ---------------
Want to stop bots from duplicate content now that the site has both https and http versions. It was a breeze adding the above php code to wordpress, vbulleting throws warning errors when I place the code in the header. Any feedback as to a solution for the above code in vbulletin header, or work around duplicate http and https pages for a vbulletin forum.