From: Andreas Gerstenberg Date: Fri, 25 Aug 2017 06:56:47 +0000 (+0200) Subject: telekom-ehealth add rewrite auf Hauptdomain X-Git-Tag: v0.1.0~2527 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=4f4f736ab9211969bc080e47de1cc330a003d700;p=pixelpark%2Fhiera.git telekom-ehealth add rewrite auf Hauptdomain --- diff --git a/customer/telekom-ehealth/www-ehealth-telematik-com.pixelpark.net.yaml b/customer/telekom-ehealth/www-ehealth-telematik-com.pixelpark.net.yaml index 84ec7329..a7761ea5 100644 --- a/customer/telekom-ehealth/www-ehealth-telematik-com.pixelpark.net.yaml +++ b/customer/telekom-ehealth/www-ehealth-telematik-com.pixelpark.net.yaml @@ -49,3 +49,10 @@ infra::profile::wordpress::projects: path: '/.well-known/pki-validation/fileauth.txt' setenvif_non_ssl: - 'HTTPS on HTTPS=on' + rewrites: + - comment: 'Rewrite auf Hauptdomain' + rewrite_cond: + - '%%{ich-trickse}{HTTP_HOST} !^www\.ehealth-telematik\.com$ [NC]' + rewrite_rule: + - '^(.*)$ https://www.ehealth-telematik.com$1 [R=301,L]' +