mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
To Prevent Google to index sitemaps
This commit is contained in:
parent
a0b076f8a6
commit
2138c7daed
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue