How to Create a Page Redirect in WP Engine Using Regex

Redirect plugins don’t work consistently on WP Engine.

99% of the time I need to do a simple 301 redirect pointing page X to page Y.  Here’s how to do it.

  1. Log into my.wpengine.com.
  2. Click your install.
  3. Click “Redirect Rules”
  4. Click “New Redirect Rule”
  5. In the “Redirect Name” field, type whatever you’d like.  Make it something you’ll recognize like, “/old-page/ to /new-page/”
  6. In the “Source” field, copy and paste the following, but make sure and replace “old-page” with your new page’s slug: ^/info/?$
  7. In the “Destination” field, put the entire url of the new page.
  8. Click “Save”, and you’re done! 

See screengrab below.

wp engine redirect rules how to

At WP Engine we use a server setup that utilizes the Nginx platform as well as Apache. What this means is that you’ll want to setup all of your redirects in your User Portal instead of other ways such as using the .htaccess file or using plugins (because these are handled on the Apache level).

WP Engine Server Redirects documentation
Posted in

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress developer, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and them to https://twitter.com/tobycryns and https://twitter.com/themightymo.com

Follow Toby's contributions on Github and WP.org.