Http to https redirecting not working

Hello! I’m trying to redirect my webpage from http to https. But, the provided .htaccess conditions in here are not working. I can access via http, but when I try to access the website with https, it says the website redirected me too many times. I have already cleared my cookies and looked at similar form posts about this problem. I am not using Cloudflare on my website and have a working SSL certificate. Any ideas? Thanks!

Oh yeah I also forgot I’m not using WordPress or any extra apps.

Hello there,

What’s your domain? So we can help you narrow down this issue.

Also try inserting this code into your .htaccess file instead of that code you inserted before:

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

My domain is
I inserted the code, and I can access the https version now. But http redirection is not working still.

It automatically redirects me to the https connection with your site.

Try clearing your browser cache.

If you’re using WordPress, it’s probably better to skip the .htaccess redirect and use the Really Simple SSL plugin instead. WordPress tries to do it’s own URL management, so enforcing HTTPS is best done inside WordPress.

1 Like

Hi Just telling what happens in my side.
All www, non-www, http or https not working on my side.

ye i fixed it.

Okay that’s great? Any other problems?

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