]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
telekom-ehealth add rewrite auf Hauptdomain
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 25 Aug 2017 06:56:47 +0000 (08:56 +0200)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 25 Aug 2017 06:56:47 +0000 (08:56 +0200)
customer/telekom-ehealth/www-ehealth-telematik-com.pixelpark.net.yaml

index 84ec732944ba76011f4c8872723c4ba95369b316..a7761ea5a0f82d63d932667ea976ac081e7d5ce8 100644 (file)
@@ -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]'
+