← Blog

WP Engine Redirect Rules

WordPress1 min read

Since WP Engine deprecated .htaccess support we need to use different methods to redirect old URLs.

They offer a good redirect rule system.

Here’s an solution to redirect the following structure

www.domain.com/wp-content/documents/document-name.pdf

to this new structure

www.domain.com/document/document-name

Source

^/wp-content/documents/(.*?)\.pdf$

Destination

https://www.domain.com/document/$1

Stuck on something like this?

I help businesses and agencies with WordPress, WooCommerce and JavaScript problems, from one-off fixes to ongoing support.