Does free infinityfree hosting support http to https redirect?

Followed this

and my .htaccess code has

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

the following code in it, however when I transfer it to my ftp host in my domain/htdocs/.htaccess
folder it gives me a error 500 please check php script/ display error messages enable

however, i enable the error messages in alter php and no error messages appear.

Does infinityfree not support .htaccess code for redirecting from http to https?

Iā€™ve added the https but now when I try to go to .htaccess and follow the instructions it doesnā€™t work at all? Is it cause Iā€™m using free infinity hosting?

Iā€™ve followed this and itā€™s exactly what I am going through

somebody mentioned this "Hi there,

you can alternatively try using the Cloudflare integration and activating the force HTTPS setting there."

But I already have https i just donā€™t understand why the .htaccess with the exact rules and everything in place is not working is it infinityfree free hosting?

better you post here how you fixed it than telling us to ā€˜deleteā€™ it.

If your question is answered please just say so instead of replacing the contents with ā€œdeleteā€.

1 Like

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