'Is this .htaccess written in the correct order?
Hey all for my website I require some .htaccess settings. Some for php and some to redirect to https from http.
I don't know if they are in the right order, will this work?
.htaccess:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
php_value upload_max_filesize 900M
php_value post_max_size 900M
php_value max.execution_time 900
Anything I need to change for it to work?
Thanks :)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|