The best way to do a search and replace without …

By 24th April 2024 Uncategorised

Comment on WordPress CloudFlare Flexible SSL – Making It Work by Gabriele.

The best way to do a search and replace without the risk to damage serialized data is to use an ad-hoc to do that like this one: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

To more safety, you can use the lightweighted CloudFlare official plugin too which filter out the ‘http:’ on every link, leaving out a protocol-safe ‘//’ without hacking the code.

Said that, I can force redirect to https using a pagerule (in free plan you have 3 for each website).

But when your website is cached through CloudFlare CDN you simply can’t do that as you need to use the 3 available pagerule slots to keep cache working.

Following the comment above, I’m wondering if replacing the url to https:// you will get the same effect, but saving the pagerule…

Gabriele Also Commented

WordPress CloudFlare Flexible SSL – Making It Work
IMHO, serving both http and https version of the site is not actually a good idea for SEO flawness: Google will much likely mark it as duplicated content.

regards,
gabriele


WordPress CloudFlare Flexible SSL – Making It Work
I got the point: I still need another https-related plugin to (for example) parsing http src tag to https (the unique notable feature of wordpress-https)

that rule on IIS is just a simple rewrite rule, while as you said I probably need to set a server var…pretty tricky, actually!

tnx for your reply!
gabriele


WordPress CloudFlare Flexible SSL – Making It Work
Tnx for your post! I’ll absolutely give it the try. But I have several questions before:

– Using your plugin, can I definitively retire the slow and buggy WordPress-HTTPS plugin, which is simply too much for simple CloudFlare-related facts?
– Since I’ve already used my free pool of PageRules for CloudFlare cache handling (as described here: https://www.seedprod.com/how-to-make-wordpress-fast/), I’m wondering if a web-server rewriterule would work, too. I’m using IIS and this is the rule I would like to test: http://stackoverflow.com/questions/26876134/redirect-http-to-https-for-multiple-wordpress-blogs-running-under-iis

any idea?

tnx in advance!


x Logo: ShieldPRO
This Site Is Protected By
ShieldPRO