From: Philipp Dallig Date: Wed, 13 Jul 2016 11:42:30 +0000 (+0200) Subject: sirona-url-shorter - www-prefix fix X-Git-Tag: v0.1.0~4541 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d513f46a7e3ebcaa807dae88c9b1b0f33f63350b;p=pixelpark%2Fhiera.git sirona-url-shorter - www-prefix fix --- diff --git a/customer/sirona-url-shorter/production.yaml b/customer/sirona-url-shorter/production.yaml index a52623c8..904b8f1e 100644 --- a/customer/sirona-url-shorter/production.yaml +++ b/customer/sirona-url-shorter/production.yaml @@ -40,6 +40,14 @@ site::profile::apache::pp_vhosts: allow_override: - All directoryindex: 'index.php' + rewrites: + - www-prefix: + comment: 'Alle Aliase auf Servername' + rewrite_cond: + - '%%{ich-trickse}{HTTP_HOST} !^www\.siro\.na$ [NC]' + - '%%{ich-trickse}{HTTP_HOST} !^prod-sirona-urlshorter\.pixelpark\.net$ [NC]' + rewrite_rule: + - '^(.*)$ https://www.siro.na$1 [L,R=301]' rewrites_non_ssl: - alias: comment: 'Rewrite Orte'