summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_typo3/partial.erb
blob: afb756df0257a26af7ed062329b53851db76c28a (plain)
1
2
3
4
5
6
7
8
9
10
<%= scope.function_template(['apache/vhosts/php/partial.erb']) %>
  <Directory "<%= @documentroot %>/typo3/">
    RewriteEngine on

    # Rewrite URLs to https that go for the admin area
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP:X-Forwarded-Proto} !=https
    RewriteCond %{REQUEST_URI} (.*/typo3/.*)
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R,NE]
  </Directory>