I can't use .htacces

I upload the .htacces file at there but its not working. What is the problem ?
My code and screenshot

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%manos.infinityfreeapp.com%{REQUEST_URI} [L,R=301]

Welcome!

Sorry, I got distracted by the game (Hight score of 35).

Try using the code in the linked article instead:

5 Likes

And also, the file name is .htaccess, not .htacces (that you are using).

6 Likes

Something is wrong with your .htaccess because it returns this as the address
Location: https://%manos.infinityfreeapp.com/
pay attention to this %

4 Likes

fixed that but still doesnt work

fixed that too but still doesnt work

it works thanks ^^

i solved the problem. I changed the rules with that
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.