Browse Source

To Prevent Google to index sitemaps

pull/84/head
Kanti 11 years ago
parent
commit
2138c7daed
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      system/includes/functions.php

+ 2
- 0
system/includes/functions.php View File

@ -1299,6 +1299,8 @@ function get_static_path() {
// Generate sitemap.xml.
function generate_sitemap($str) {
header('X-Robots-Tag: noindex');
echo '<?xml version="1.0" encoding="UTF-8"?>';
if ($str == 'index') {


Loading…
Cancel
Save