Skip to main content

category: How To...

HOW TO: Serve Frontity inside WordPress on any environment (no node.js)

A method to load a Frontity site as a theme inside Wordpress with any hosting environment – including those that don’t yet support Node.js!

HOW TO: Handle query strings for WordPress in nginx (like a crazy person would)

You need a wacky method for nginx to uniquely handle incoming requests that contain a specific query string using error page handling.

HOW TO: Support .webp on Cloudflare’s edge with a Worker

A method to serve .webp to supported browsers only using Cloudflare workers (and optionally Webp Express).

HOW TO: Use Cloudflare Workers to enable Basic Auth on a subdirectory

Here’s a neat way to protect any subdirectory or URL with Basic Auth using Cloudflare Workers – no .htaccess or htpasswd required!

HOW TO: Use Cloudflare to handle Country-based redirects

Do you have a multilingual or multi-regional website that automatically redirects users based on their country? This is for you.

HOW TO: Use Cloudflare to reverse proxy a subdirectory

You need to serve a complete site through a “subdirectory” (ie. /news or /blog) without being able to move it. Cloudflare to the rescue!

HOW TO: Serve WordPress from a subdirectory (no .htaccess)

This is not a proxy method – we’ll be “physically” serving Wordpress from a subdirectory without relying on .htaccess (FPM-compatible).

Security Headers for Headless: Frontity & Apache

Beef up your security by setting security headers. Here’s how to do it with Apache (Nginx method linked).

HOW TO: Block traffic coming from a specific domain

Inbound links are awesome. Except for when they’re not. Here’s how to stop bad ones…

HOW TO: Cache the WordPress REST API Post endpoint in Cloudflare

With this method using Apache, Node, Frontity and Cloudflare, you can start imagining how to get your site to 100% uptime.