-2
I have a website hosted on UOL HOST.
I’m setting up a .htaccess in the hope that 2 things will happen:
A) All access by http be converted to httpS
B) Any and all access (Links existing and NON-EXISTENT), are redirected to the index php.
I’m doing it this way:
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteRule ^(.*)$ index.php?page=$1 [NC]
Well, the redirecting to the index is perfect!
But when I try to http for https, although it is enabled https and the file can be accessed directly case that directive NAY is in the .htaccess gives information that
Esta página não está funcionando
But the page only has the HOME text on it and nothing else