ID: 03bae4632d6b1b99f1ba2cce3fa6bd78c47977a7
22 lines
—
654B —
View raw
| # The Python interpreter option for the webserver. Use virtualenv.
PassengerPython "./venv/bin/python3"
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteBase /
# Redirect everything to HTTPS
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Remove www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
# Remove trailing slashes
# Do we need this rule? It's probably better not to use it, as it
# could interfere with any regex match in some topic.
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)/+$ /$1 [NC,L,R=301,QSA]
|