this is the htaccess code for PHP MVC
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [L]
what i want is :
- Force https
- then go to index.php file and send url data
i added new htaccess file like this
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
in the parent dir
but, it still doesnt make force HTTPS
please answer this
sorry for my bad english
2
Answers
thanks all, i found the answer, i dont know if this work or not, so please correct me if im wrong :)
just do this on .htaccess file
for sources of information about RewriteEngine is Here
This is weird, i answer my own question.
im sorry if my explanation is difficult to understand :)