To Prevent Google to index sitemaps

This commit is contained in:
Kanti 2014-08-24 13:54:34 +02:00
commit 2138c7daed

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') {