From 4f4f736ab9211969bc080e47de1cc330a003d700 Mon Sep 17 00:00:00 2001 From: Andreas Gerstenberg Date: Fri, 25 Aug 2017 08:56:47 +0200 Subject: [PATCH] telekom-ehealth add rewrite auf Hauptdomain --- .../www-ehealth-telematik-com.pixelpark.net.yaml | 7 +++++++ 1 file changed, 7 insertions(+) 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]' + -- 2.39.5