Skip to content

Commit

Permalink
add to robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jun 26, 2024
1 parent 2ea7026 commit 80b6cb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plugin/AddToRobots.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$news_archive_string .= "Disallow: /tutorial/hotmail-configure-outlook-windows?page=2\n";
$news_archive_string .= "Disallow: /tutorial/hotmail-configure-outlook-windows?page=3\n";
$news_archive_string .= "Disallow: /it-security/email-phishing/*\n";
$news_archive_string .= "Disallow: /services/search\n";
$news_archive_string .= "Disallow: /tutorial/search\n\n";

$news_archive_string .= "# Archived news nodes\n";
foreach ($news_results as $news_result) {
$news_archive_string .= "Disallow: /node/$news_result\n";
Expand Down

0 comments on commit 80b6cb1

Please sign in to comment.