Another way will be to use InfinityFree SSL tool to install SSL cert. Then add the custom domain to CloudFlare. Last step will be to change SSL mode to full or full(strict) within CF. No .htaccess modification will be needed. Take note full(strict) mode cannot be used on self-signed cert
Hello,
I have an easier way. And please don’t use and self signed certificate cause any browser don’t trusts an self signed certificate. You can read this -
Or…
Watch this tutorial and you will have a perfect certificate.