summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_mediawiki/partial.erb
blob: cf30f5f557d51083f74aa80a895c84d6f1263070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<% if run_mode == 'fcgid' -%>
  RewriteEngine On
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
  RewriteRule ^/?index.php/(.*)$ /index.php?title=$1 [PT,L,QSA]
<% end -%>
<%= 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>