From c2c04f2595d8344acff5e9ec91b87a03706fd9de Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 20 Feb 2017 14:46:29 -0700 Subject: [PATCH] Add SSL redirection in the .htaccess file; just add a clarification to the latest blog post. bzr-revno: 58 --- blog/windows-and-ssl.rst | 7 ++++--- files/.htaccess | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/blog/windows-and-ssl.rst b/blog/windows-and-ssl.rst index 552e7fa..87f993e 100644 --- a/blog/windows-and-ssl.rst +++ b/blog/windows-and-ssl.rst @@ -48,9 +48,10 @@ unfortunately it is something that we don't have control over. Having said that, the latest version, we'll tell you to upgrade before helping you.

-If you're running into this problem while running the First Time Wizard, you need to open up Internet Explorer and -visit `https://get.openlp.org/ `_. This forces Windows to download a file that OpenLP needs. -Once you've opened up the web page, you can close it and go back to OpenLP and retry the First Time Wizard. +If you're running into this problem while running the First Time Wizard, you need to open up Internet Explorer (yes, +it **must** be Internet Explorer) and visit `https://get.openlp.org/ `_. This forces Windows +to download a file that OpenLP needs. Once you've opened up the web page, you can close it and go back to OpenLP and +retry the First Time Wizard. If you're running into the problem where you can't seem to log in to the SongSelect importer, you need to open up Internet Explorer and visit `SongSelect`_. Again, this forces Windows to download a file that OpenLP needs, and you diff --git a/files/.htaccess b/files/.htaccess index d5a1f4a..5cfd976 100644 --- a/files/.htaccess +++ b/files/.htaccess @@ -1,4 +1,8 @@ RewriteEngine on +# Redirect HTTP to HTTPS +RewriteCond %{HTTPS} off +RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] +# Make .html optional RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.html [L]