How To: Deploy a Headless theme with Node.js/React to WP Engine with Devkit

Here’s a super straight forward workflow for using Devkit to push a wordpress headless demo to a live WP Engine install.

How to: Search/replace URLs with WP-CLI and Regex

Often, when pushing a WordPress site from a local or staging environment to a live site, you’ll need to search/replace the domain throughout the database. In most cases, you could use a plugin like Better Search Replace, or if you’re familiar with WP-CLI, you would use this command in your terminal: Easy peasy. There’s a […]

How to: Load a subdirectory independently of WordPress (avoid WordPress 404s)

There are times when you’ll want to load a subdirectory in a WordPress setup decoupled from the WordPress core taxonomy handler (ie. a secondary non-wordpress app). By default, when you try to load the subdirectory in a browser you’ll see a 404 “page not found” response – or a WordPress page that closely resembles the […]

HOW TO: Use Autoptimize to set Critical Path CSS & Eliminate Render-Blocking Resources
HOW TO: Eliminate Render-Blocking Resources & set Critical Path CSS with Autoptimize

Set critical path css & eliminate render-blocking resources, speed up your Wordpress site and get a better Google Pagespeed Insights score with Autoptimise.

How To: Force static resources to lowercase on WP Engine

First you’ll want to rename all files to be lowercase. Here is a command you can run from your linux terminal to RECURSIVELY (all subdirectories within the one you are in will be affected): Next you’ll want to add the following to the Nginx configuration of your site (you may need to contact support to […]

How To: Restrict a path for logged-out users

WITH 403: To restrict a path from public access (returning a 403 page), just add this to your nginx configuration (or ask your hosting provider): WITH REDIRECT: To restrict a path from public access (redirecting to another page, like a login form), just add this to your nginx configuration (or ask your hosting provider): NOTE: […]

How To: Dequeue Unused Scripts & Styles Reference

I have yet to come across a WordPress site that hasn’t benefited from dequeueing unnecessary scripts and styles loaded by plugins and the active theme (Google Pagespeed Insights/Lighthouse especially). Interestingly, I’ve also yet to come across a WordPress site that doesn’t load unnecessary scripts and styles. Identifying which of these can be knocked out in […]

HOW TO: Set Cache Control Headers in Nginx or Apache... The Right Way
HOW TO: Set Cache Control Headers in Nginx or Apache… The Right Way

There are a bajillion ways to set Cache control headers in Nginx and Apache. In this guide, I’ll show you the most correct, out-of-the-box setup.

[SOLVED] Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php
[SOLVED] Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php

Are you seeing “Uncaught Error: Call to undefined function mysql_connect() in /wp-includes/wp-db.php” on your Wordpress site? Here’s the fix…

How To: Force Robots.txt and Sitemap.xml over HTTPS:// on WP Engine

If you’re on WP Engine and are not routing through Cloudflare or a similar proxy that can force static files to HTTPS://, you may notice that a request to https://domain.com/robots.txt or https://domain.com/sitemap.xml won’t redirect to HTTPS:// (or many other static files). They will both still load with HTTPS:// if specifically requested with that protocol – […]

Copyright © 2019 Nodeflame