Zen Follower
- Join Date:
- Jun 2006
- Posts:
- 439
- Plugin Contributions:
- 0
Post #1 by renz
Hi can anyone tell me if this code is supposed to be in the root index.php as I am not quite sure what it does and I believe an SEO company put it there.
Thanks
Regards
RR
<?php
if($_GET['cgi-bin'] || $_GET['3Dshopping_cart'] || $_GET['sort'] || $_GET['tag'] || $_GET['language'] || $_GET['currency'] || $_GET['disp_order'] || $_GET['m1track'] || $_GET['sort'] || $_GET['alpha_filter_id'] || $_GET['filter_id']) {
header("X-Robots-Tag: noindex,noarchive,nosnippet");
}
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
header("X-Robots-Tag: noindex,noarchive,nosnippet");
}