Monday, 24 July 2017

Redirect http:// to https://

1. enable rewrite.load  sudo a2enmod rewrite
for
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/%$1 [R,L]
2. Make sure database.yml. settings.yml, and other yml files should contain production mode for open https:// in first time

No comments:

Post a Comment