Apart from the SEO implication of adding WWW to your site requests, CloudFlare seems like a pretty cool tool. A free CDN seems too good to be true. I like new and shiny things so I was chomping at the bit when Dreamhost said they have one-click CloudFlare support. Most of the content I host is static-ish so I thought I’d give it a try.
Some sites were painless to get up and running, while others would throw a “redirect loop” error when I tried to load the site. I noticed that most of the sites were WordPress sites as well. After poking around in the logs I found a fix.
You’ll need to edit your
file to include the following lines.
define('WP_SITEURL', 'http://www.yourSiteURL.com'); define('WP_HOME','http://www.yourSiteURL.com');
It seems that if these lines are omitted from your config file then WordPress will barf until you set them.