Here’s a super straight forward workflow for using Devkit to push a wordpress headless demo to a live WP Engine install.
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 […]
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 […]
Set critical path css & eliminate render-blocking resources, speed up your Wordpress site and get a better Google Pagespeed Insights score with Autoptimise.
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 […]
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: […]
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 […]
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.
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…
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 – […]