Unable to get a redirect to https://

Username (e.g. epiz_XXX) or Website URL

Dear InfinityFree,

I am currently experiencing issues getting 301 redirects in place to point all versions http:// and www. to “https://” (without www.)

In my .htaccess file I do not have error pages, not sure if they’re needed if I only have 3 sub domain pages.
Please can you help, many thanks.

Error Message

Your connection is not private

Other Information

My .htaccess file has these lines:-
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://cure4incurables.great-site.net/$1 [R,L]

Your rewrite is working fine. It is the SSL/TLS certificate issuer that is the problem.

When you chose the Self Signed issuer, it clearly said that it is not trusted by browsers:

Try using another issuer, such as GoGetSSL, ZeroSSL, or Let’s Encrypt. If you do not want to do this, you can use Cloudflare:


I finally went to the Zerossl website, registered and got a zipped private key and Certificate. I then opened my Control panel, clicked on SSL and clicked on configure and pasted my private key and Certificate and uploaded the same. Now it is working fine!

Yes, that is one way to do it, but Infinityfree also offers ZeroSSL built-in, as you can see in my screenshot above.
Anyway, I’m glad you got it working!


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