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.