From 44795515104a609cf3447fcae0858bfa0cf93015 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Tue, 6 Feb 2024 22:19:14 +0100 Subject: [PATCH] websites: Disable indexing of alt.fp-o/cloud & fix redirect alt.fpo/en/cloud is still the first link to pop up on search engine and the current redirect only works with /cloud. This commit fix the redirect, and prevent this old page to be indexed. --- playbooks/include/proxies-redirects.yml | 2 +- .../website/templates/robots/alt.fedoraproject.org-robots.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 roles/httpd/website/templates/robots/alt.fedoraproject.org-robots.txt diff --git a/playbooks/include/proxies-redirects.yml b/playbooks/include/proxies-redirects.yml index 1aa283805e..2c09c77920 100644 --- a/playbooks/include/proxies-redirects.yml +++ b/playbooks/include/proxies-redirects.yml @@ -874,7 +874,7 @@ - role: httpd/redirectmatch shortname: 00-cloud-redirect website: alt.fedoraproject.org - regex: ^/cloud + regex: ^.*/cloud target: https://fedoraproject.org/cloud/ tags: - cloud diff --git a/roles/httpd/website/templates/robots/alt.fedoraproject.org-robots.txt b/roles/httpd/website/templates/robots/alt.fedoraproject.org-robots.txt new file mode 100644 index 0000000000..e1e4b04626 --- /dev/null +++ b/roles/httpd/website/templates/robots/alt.fedoraproject.org-robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Crawl-delay: 1 + +Disallow: /*/cloud/ \ No newline at end of file