When creating redirects and rewrites for your WP Engine site, there may be sites you work on which have a large number of redirect rules that need to be imported. Our User Portal supports up to about 1000 redirects to be imported. After about 1000 redirect rules, we’ve seen performance issues, so we strongly recommend keeping this list under that amount. Our Support Team can help import these redirect rules for you! Before continuing though, we recommend taking the following steps:
- Perform an audit of the redirect rules. See if any are no longer needed, or if any of them follow the same pattern and can be grouped into “rewrites”, where requests matching a specific pattern are redirected based on that pattern.
- Ensure the rules are in a text document (something easy to copy/paste from), and formatted like .htaccess redirect rules.*
Once you have taken this step to help curate your list of redirect rules, please contact our Support team via your User Portal, under the option for “Support 24/7” in the top navigation. Provide Support with the list of redirect rules, and they can assist in bulk-importing these for you!
*Here are some examples of .htaccess style redirect rules:
Redirect “domain.com/path/match/” to “domain.com/something/”
Alternative format: Redirect “domain.com/path/match/” to “domain.com/something/”
Redirect 301 /path/match/?$ http://domain.com/something/
Redirect “domain.com/path/more/anything” to “domain.com/anything”
RewriteRule /path/more/(.*) http://domain.com/$1 [R=301,L]
Redirect a domain with an argument (?example-arg=123) on the end: “domain.com/path/match/?example-arg=123” to “domain.com/something/”
Redirect 301 /path/match/?example-arg=123 http://domain.com/something/