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

More posts from themightymo.com

How to merge multiple csv files via command line

How to merge multiple .csv files via command line

By The Mighty Mo! Design Co. | May 17, 2023

Today I downloaded 29 csv files with tax information. I could import those files 1 at a time into WooCommerce, but wouldn’t it be nice if I could merge them first and then only import a single file? The unix command is simple – just navigate to the folder with all the csv files and…

WordPress Security Services

15 Best WordPress Support and Maintenance Services for 2023: Ensuring Your Website Stays in Top Shape

By The Mighty Mo! Design Co. | April 27, 2023

Small business owners and non-profit leaders know that keeping your website secure, fast, and fully-functional is critical to success.  Here’s the unspoken truth: You can either learn how to do all that tech maintenance and development stuff yourself, or hire someone else to do it. But let’s face it, doing it yourself isn’t always the…

how to set up Cloudflare whitelist for ip

How to Whitelist SEM Rush IPs in Cloudflare

By The Mighty Mo! Design Co. | April 24, 2023

Alright, I’m going to show you how to whitelist a set of IPs on CloudFlare. In our case we use SEMrush and we want to make sure the SEMrush has full access to our sites.