summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/vhosts/php_silverstripe/partial.erb7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/vhosts/php_silverstripe/partial.erb b/templates/vhosts/php_silverstripe/partial.erb
index 8fb87e4..75a8193 100644
--- a/templates/vhosts/php_silverstripe/partial.erb
+++ b/templates/vhosts/php_silverstripe/partial.erb
@@ -2,16 +2,11 @@
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
- RewriteRule /admin(.*) https://%{HTTP_HOST}/admin$1 [L,R,NE]
- RewriteRule /Security(.*) https://%{HTTP_HOST}/Security$1 [L,R,NE]
+ RewriteRule /(Security|admin)(.*) https://%{HTTP_HOST}/admin$1$2 [L,R,NE]
<Directory "<%= @documentroot %>/">
-
<%= scope.function_template(['apache/vhosts/partials/std_override_options.erb']) %>
-
<%= scope.function_template(['apache/vhosts/partials/php_settings.erb']) %>
-
<%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %>
-
Include include.d/silverstripe.inc
</Directory>