summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_typo3/partial.erb
blob: 776fff26e656913fc643a18181ec790ecd82603c (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 %{REMOTE_ADDR} !^127\.[0-9]+\.[0-9]+\.[0-9]+$
        RewriteCond %{HTTPS} !=on
        RewriteCond %{REQUEST_URI} (.*/typo3/.*)
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
    </Directory>