Redirect to HTTPS is not working

uditmahato.com.np

redirect to https not working

Error Message

This page isn’t working

uditmahato.com.np redirected you too many times.

ERR_TOO_MANY_REDIRECTS

Other Information

i even pasted the script in .htaccess file

Are you using WordPress?

Cloudflare’s Flexible SSL requires some special handling for SSL redirects to work correctly.

If you’re using custom .htaccess rules for this, please use our recommended .htaccess snippet instead:

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

If you’re using WordPress, please setup your site as described here:

2 Likes

Yes i used this snippet. Still not working…What shall i do now? Please help me?

No thats my custom website

I checked your .htaccess file, and I see you’ve tried to do this with the Redirects tool too. You can’t use the Redirects tool like this. Please remove the redirect from the Redirects system in the control panel.

2 Likes

Just clear cache?

I did remove the redirect link from redirect tool . But still not working!!I had removed it yesterday too bt didnt work so i added again

but again i removed it bt still not working , an u please check once again and help me

i did cleared my whole browsers including cache,history, accounts almost everything

Try to cancel redirects

after canceling it works, bt i want it to redirect to https

You shouldn’t use the cpanel redirect tool just to redirect http to https, but oh also:

Please define more than just “not working”.

1 Like

I havent. i already removed cpanel redirect, it is showing the following message
my website is uditmahato.com.np

This page isn’t working

uditmahato.com.np redirected you too many times.

ERR_TOO_MANY_REDIRECTS

I checked your control panel and the redirect is still there. Please remove it and do not add it again. Don’t try to use it to redirect to the same domain or a domain on the same directory. It will not work and just cause redirect loops like this.

i did, bt still not working and i will not add again.

Hello please help me with it. still my website is showing the same error

If you have cloudflare on your website you can go to cloudflare dashboard and go to
SSL/TLS > Edge Certificates and then enable Always Use HTTPS that’s what I did and it works for me.

Yes, that redirect config looks OK now, but I also see your website is still redirecting.

But I also checked your website directly on our IP address (bypassing Cloudflare). And it doesn’t redirect that way.

So please also delete any Page Rules in Cloudflare you may have setup to redirect your site to HTTPS. You can use the “Always Use HTTPS” option instead, which is less error prone and doesn’t take up a page rule slot.

2 Likes

hello can you help me to set cloudfare

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