Forcing HTTPS

I tried all methods online on editing htaccess to force https and none of them worked. Even the one in infinityfree website. Any idea?

@SuperJava said:
I tried all methods online on editing htaccess to force https and none of them worked. Even the one in infinityfree website. Any idea?

If you are using CloudFlare, .htaccess methods will not work and you will have to use their system.

If you are not, then please describe what changes you did.

Also, did you remember to clear your DNS and browser cache every time you did a new change?

Yes, I’m using CloudFlare. Thanks for the information! I did it. take a look:
waqarquran.com

I just tried to access your website with http protocol and it’s successfully redirected me to https, your site is okay and I guess problem solved, if it does not work for you(happening sometimes) - wait.

You could setup cloudflare, and through cloudflare force https