-
-
Save Karendev/4b8bf25f0965ade011b5556bfcaf2b85 to your computer and use it in GitHub Desktop.
Source code for https://victorfont.com/crawl-delay-10-in-robots-txt/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Append directives to the virtual robots.txt | |
//* Siteground adds crawl-delay: 10 to robots.txt. Don't use physical robots.txt on SiteGround | |
add_filter( 'robots_txt', 'robots_mod', 10, 2 ); | |
function robots_mod( $output, $public ) { | |
$output .= "Sitemap: https://victorfont.com/sitemap_index.xml"; | |
return $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment