From 6f7b8a60ffdde75e9cbd739cb6af42bdf1a13eda Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Mon, 4 May 2026 17:52:03 +0200 Subject: [PATCH] 2026-05-04_15-52-03Z_Monday #105 redirect old to new ccdn --- ini/www.htaccess | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ini/www.htaccess b/ini/www.htaccess index 859cf7a..d420068 100644 --- a/ini/www.htaccess +++ b/ini/www.htaccess @@ -1,11 +1,11 @@ RewriteEngine on -RewriteCond %{HTTP_USER_AGENT} (ClaudeBot|DataForSeoBot|MJ12bot|AhrefsBot|AwarioBot|BLEXBot|dotbot|PetalBot|SemrushBot*|SiteAuditBot|SplitSignalBot|Yandex) [NC] +RewriteCond %{HTTP_USER_AGENT} (AhrefsBot|anthropic-ai|AwarioBot|Barkrowler|BLEXBot|CCbot|ClaudeBot|Claude-Web|DataForSeoBot|dotbot|FacebookBot|Go-http-client|Google-Extended|GPTBot|GPTBot*|MJ12bot|PetalBot|PiplBot|SemrushBot*|SiteAuditBot|SplitSignalBot|Yandex|Thinkbot|Barkrowler|SemrushBot) [NC] RewriteRule (.*) - [F,L] RewriteRule "^comments_rss.php$" "/comments.rss" [R] -RewriteRule "^live$" "https://stream.lugcast.mywire.org/stream" [R=301,NE,L] +RewriteRule "^live$" "https://files.shownotes.ooguy.com/stream" [R=301,NE,L] RewriteRule "^maillist$" "https://lists.hackerpublicradio.com/mailman/listinfo/hpr" [R=301,NE,L] RewriteRule "^download.php" "/syndication.html" [R=301,NE,L] RewriteRule "^about.php|^help_out.php" "/about.html" [R=301,NE,L] @@ -20,6 +20,8 @@ RewriteRule "^correspondents.php" "/correspondents/index.html" [R=301,NE,L] RewriteRule "^index_full.php|^show.php|^index.php|^twat.php" "/eps/index.html" [R=301,NE,L] RewriteRule "hosts/ken_fallon" "https://hackerpublicradio.org/correspondents/0030.html" [R=301,NE,L] +RewriteRule "^eps/hpr([0-9]{4})\.(mp3|ogg|opus|spx|flac|wav)$" "https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr$1/hpr$1.$2" [redirect=301,last] + RewriteRule "^calendar.php$" "http://hub.hackerpublicradio.org/calendar.php" [R,L] ErrorDocument 404 /404.shtml @@ -43,10 +45,6 @@ RewriteCond %{QUERY_STRING} ^(.*)(?:^|&)fbclid=(?:[^&]*)((?:&|$).*)$ [NC] RewriteCond %1%2 (^|&)([^&].*|$) RewriteRule ^(.*) /$1?%2 [R=301,L] -# Redirect episodes to archive.org -RewriteRule "eps/hpr([0-9]{4})\.(ogg|mp3|spx|wav|flac|opus)" "https://archive.org/download/hpr$1/hpr$1.$2" -RewriteRule "local/hpr([0-9]{4})\.(ogg|mp3|spx|wav|flac|opus)" "https://archive.org/download/hpr$1/hpr$1.$2" [R=301,L] - # Rewrite the host series and episode pages RewriteCond %{QUERY_STRING} id=(\d{1})$ @@ -86,5 +84,5 @@ Allow from all - header set X-Clacks-Overhead "GNU Terry Pratchett" + header set X-Clacks-Overhead "GNU Terry Pratchett, FiftyOneFifty, Lord Drachenblut" \ No newline at end of file