From a5b4aa42d40a2f605d72e94d3426cc571613957e Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Mon, 15 Aug 2022 13:19:11 +0200 Subject: [PATCH] add redirection for publiccode.eu/sharepic to sharepic.fsfe.org/pmpc --- site/static/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/static/.htaccess b/site/static/.htaccess index 68fbb8a..dafd2f8 100644 --- a/site/static/.htaccess +++ b/site/static/.htaccess @@ -9,5 +9,9 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^[a-z-]*/(.+) $1 [L,R=301] +# Redirect /sharepic to sharepic generator +#RewriteRule ^sharepic$ https://sharepic.fsfe.org/pmpc [R=301,L] +RewriteRule ^([a-z-]*/)?sharepics?/? https://sharepic.fsfe.org/pmpc [R=301,L] + # Redirect 404 errors to nice page ErrorDocument 404 /404.html