HTTP to SSL redirect – just with PHP

Few month ago i wrote how to integrate Cloudflare SSL to your WordPress website.
We used some little tricks in wp-config and Apache Configuration and Cloudflare SSL began working like pure SSL.

Now i am sharing another little trick which doesn’t require apache or nginx settings change.

Get more useful WP tricks and snippets by subscribing to my mailclub.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.