From d513f46a7e3ebcaa807dae88c9b1b0f33f63350b Mon Sep 17 00:00:00 2001 From: Philipp Dallig Date: Wed, 13 Jul 2016 13:42:30 +0200 Subject: [PATCH] sirona-url-shorter - www-prefix fix --- customer/sirona-url-shorter/production.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) 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' -- 2.39.5