Skip to content

Commit

Permalink
Update robots.txt, add ROBOTS_DISALLOWED and extra-robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
naresh-kumar-babu committed Aug 2, 2024
1 parent fa52300 commit eef597c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _sources/configs/robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
ini_set( 'display_errors', 0 );
error_reporting( 0 );

echo "# The following lines are generated by robots.php\n";

header( 'Content-Type: text/plain' );

$robotsDisallowed = getenv( 'ROBOTS_DISALLOWED' );
Expand All @@ -22,10 +24,7 @@

$siteMapUrl = "$server$script/sitemap$subdir/sitemap-index-$identifier.xml";

echo "# Add the sitemap url:\n";
echo "Sitemap: $siteMapUrl\n";

echo "\n# Content of the robots.txt file:\n";
}

readfile( 'robots-main.txt' );
Expand Down

0 comments on commit eef597c

Please sign in to comment.