Skip to main content

Cloudflare

How to Develop Locally in Drupal and Host Static Files on your Website

Background # Say you have an old website on Drupal 7 with plugins that don’t work with the latest versions of Drupal. You now cannot migrate over to Drupal 9 or 10 without doing a lot of manual work and/or losing the functionality of your current plugins. If your requirements are still fulfilled by the old Drupal 7 website, there’s a solution to keep using it.

How to Get an 'A' Rating From Qualys SSL Labs if Your DNS Is Cloudflare and You Use OpenLiteSpeed as Your Wordpress Web Server

By default, when you set up a WordPress site using OpenLiteSpeed (https://openlitespeed.org), you’ll get a “B” rating in Qualys SSL Labs SSL test at https://www.ssllabs.com/ssltest/. And even if you set up your minimum TLS version on Cloudflare to be TLS 1.2, Qualys reports your website still uses TLS 1.1. The following steps allow you to fix the certificate issue and get an “A” rating.

Redirect a website in Clouldflare

·40 words·1 min
Login to Clouflare –> select your website –> Rules –> Redirect Rules –> Create Rule. Set “All incoming requests” to Static, your URL to be redirected to, set Status Code to 301 (permanently moved. Hit “Deploy”, wait for propagation. 🔴

Create static website from Drupal 7 and deploy into Cloudflare Pages

·120 words·1 min
To extract a static website from Drupal 7.x so it can be hosted on Cloudflare Pages, follow the instructions below: Install plugin “Static Generator” from (www.drupal.org/project/static) Run it. All static files will be created under “static” folder in the root of your Drupal Installation after you complete initial setup. Create a new Github repo, upload all files to Github and deploy into Cloudflare. Your website will be live in the URL you set up during deployment. If you do not know git, use “Git Desktop”, load all the files, and sync it up. As soon as the sync is complete, if you’ve set up Cloudflare pages to autodeploy (default mode), your site will be deployed in Cloudflare near instantly.