-
Open /.htaccess file.
-
Find:
RewriteEngine on
-
And add this code snipped below it:
# Redirect to HTTPS RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
sudo find web/ -type d -exec chmod 755 {} \;
sudo find web/ -type f -exec chmod 644 {} \;
sudo chmod 444 web/.htaccess;
sudo chmod 555 web/sites/default/;
sudo chmod 744 web/sites/default/settings.php;
sudo find web/sites/default/files -type d -exec chmod 775 {} \;
sudo find web/sites/default/files -type f -exec chmod 644 {} \;
Append to .htacecss file in drupal root directory
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 64M