diff --git a/site/publish.sh b/site/publish.sh index c5963a2d..78bfcc49 100755 --- a/site/publish.sh +++ b/site/publish.sh @@ -157,7 +157,7 @@ then { echo '' echo "## Fallback: if not rules match then redirect to ${mirrorbits_hostname}" - echo "RewriteRule ^.* https://${mirrorbits_hostname}%{REQUEST_URI}? [NC,L,R=307]" + echo 'RedirectMatch 307 (.*)$ https://'"${mirrorbits_hostname}"'$1' } >> ./www-redirections/.htaccess echo '----------------------- Launch synchronisation(s) -----------------------'