Only redirect Plinth requests to HTTPS.

Previously, we redirected all requests to HTTPS.  Now, we redirect
only when the user tries to connect to the Plinth site.
This commit is contained in:
Nick Daly 2014-03-13 12:16:32 -05:00
parent 2b4e17e425
commit a09aa90145

View File

@ -3,6 +3,7 @@
## Force SSL ## Force SSL
RewriteEngine on RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$ ReWriteCond %{SERVER_PORT} !^443$
ReWriteCond %{REQUEST_URI} ^/plinth
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
## Shared options. ## Shared options.