The Roots theme for WordPress is awesome, and so is WPEngine. When using the two together you’ll need to configure nginx rewrite rules to get the Rewrites (clean URLs for static theme assets) feature working properly.
WPEngine doesn’t give you access to an nginx.conf
file, so you’ll need to use WPEngine’s Redirect Rules feature to configure these redirects. Luckily, it’s very simple to do.
Assets
All Domains
^/assets/(img|js|css|fonts)/(.*)$
/wp-content/themes/roots/assets/$1/$2
Assets
All Domains
^/plugins/(.*)$
/wp-content/plugins/$1
As a side note, this can be used in general to setup custom nginx redirects and rewrites, similar to location
and try_files
, on WPEngine.