And more wordpress and cloudflare issues

1319599821000 » Tagged as: Cloudflare , Wordpress

So I blogged the other day about adding SSL to the Wordpress admin area for a site using the free version of Cloudfare. The solution that I adapted wasn't the perfect one - it leads to another issue - one of constant redirects. When you login to your admin area you are redirected to the wp-login.php page once again even though your login was successful.

This is something that happens randomly and it's a silent failure.  Wordpress does not display any error messages either in the browser or the error_log file. On the other hand if you manually type https://www.raditha.com/blog/wp-admin/ into your browser you find that it loads the dashboard - which implies that the login was successful. This strange behaviour can apparently be rectified by following the Wordpress Administration over SSL guidelines

Or so I thought, unfortunately it didn't quite work out that way. What did work was adding a line to the wp-config.php file as follows:

define('ADMIN_COOKIE_PATH', '/');

This solution I gathered from the STR Graphics blog

There was yet another problem that needed to be fixed, though it was not quite related to the cloudflare move, it's something that's been around for a while but something I hadn't bothered to fix. The exact problem was the category pages were throwing up 404 errors in some cases (because advanced permalinks plugin wasn't handling them properly). The solution as described by hartlrobert is to comment out the line that filters category page links in the plugin code.

comments powered by Disqus