Skip to main content

Posts

Showing posts from October, 2020

Redirect HTTP to HTTPS on Wordpress over Cloudflare

Found a pretty simple and to the point tutorial explaining how to redirect all HTTP requests to HTTPS on Wordpress ->  https://wp-mix.com/htaccess-redirect-http-to-https/ . Only these won't work if you're using Cloudflare as your server. If you add rules to your htaccess file to set up the redirect, you will see that the browser says "the website redirected too many times" or something like that. hmmm......... Few simple steps to add the redirect: (you don't need the htaccess): Head to Cloudflare Dashboard. Click on the website that needs the redirect. Go to SSL/TSL tab. Find the setting called "Automatic HTTPS Rewrites". If it is off and grey. Turn it on and it should turn [green]. Ok. Now we create a post. Can't. Because Wordpress fails to save any changes made in the editor. Wordpress says "updating failed you are probably offline". Why? In the General Settings of your Wordpress, the site url is still http://yourwebsite.com and not ht...