{"id":7615,"date":"2014-05-29T12:00:01","date_gmt":"2014-05-29T17:00:01","guid":{"rendered":"https:\/\/wpengine.com\/support\/redirect\/"},"modified":"2014-05-29T12:00:01","modified_gmt":"2014-05-29T17:00:01","slug":"redirect","status":"publish","type":"support","link":"https:\/\/wpengine.com\/support\/redirect\/","title":{"rendered":"301 and 302 Redirect Rules"},"content":{"rendered":"<p data-analytics-track-visibility=\"yes\">Redirects, or rewrites, are rules you can create to have certain URLs automatically go to a new location anywhere on the internet. If you have adjusted the URL structure on your website, and need former links to redirect to the new ones, you will need to configure redirect rules to ensure your pages can be found and maintain any SEO ranking.<\/p>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note\">Note<\/h3>\n\n\n\n<p>The redirect rules page is deprecated. It will still work for sites that already have existing redirect rules. For all other sites, new redirects should be added using the <strong>Rewrite rules<\/strong> tab of the <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/web-rules-engine#toc-rewrite-rules\" target=\"_blank\" rel=\"noreferrer noopener\">Web Rules<\/a> page.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-redirects-on-wp-engine\" data-analytics-track-visibility=\"yes\">Redirects on WP Engine<\/h2>\n\n\n\n<p data-analytics-track-visibility=\"yes\">WP Engine has <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/htaccess-deprecation\/\">deprecated the .htaccess file<\/a>, meaning any redirects needs to be applied to your website with other methods. WP Engine has two areas of the User Portal to allow for easy management of redirect and rewrite rules.<\/p>\n\n\n\n<ol class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li><a href=\"#toc-add-a-redirect-rule\">Create 301 or 302 redirects using the redirect rules page.<\/a>\n<ul class=\"wp-block-list\">\n<li>This option is deprecated. It will still work for sites that are already using the redirect rules page. For all other sites, new redirects should be added using the <strong>Rewrite rules<\/strong> tab of the <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/web-rules-engine#toc-rewrite-rules\" target=\"_blank\" rel=\"noreferrer noopener\">Web Rules<\/a> page.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/web-rules-engine\/#toc-rewrite-rules\">Create rewrites using the Web Rules Engine.<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-bulk-redirects\" data-analytics-track-visibility=\"yes\"><strong>Bulk Redirects<\/strong><\/h3>\n\n\n\n<p data-analytics-track-visibility=\"yes\">There are several ways to configure redirect rules, with the most effective ways being determined by the total number of redirects. All of the redirect options below offer bulk importing of Apache (htaccess-formatted) redirects. This means importing existing redirects from the .htaccess can be done quickly and easily, and does not require redirects be moved one at a time.<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li><a href=\"#toc-bulk-import-formatting-examples\">Bulk import redirects to the WP Engine Nginx configuration<\/a><\/li>\n\n\n\n<li><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/redirection.me\/support\/import-export-redirects\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bulk import redirects to Redirection plugin<\/a><\/li>\n\n\n\n<li><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/yoast.com\/help\/import-redirects\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bulk import redirects to Yoast Premium redirect manager<\/a><\/li>\n<\/ul>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-1\">Note<\/h3>\n\n\n\n<p>Only redirect rules can be bulk imported. The Web Rules Engine (access, header, and rewrite rules) does not accept bulk imports at this time.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>Fewer Than 1000 Redirects<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Redirects can be added to WP Engine\u2019s Nginx configuration:\n<ul class=\"wp-block-list\">\n<li><a href=\"#toc-add-a-redirect-rule\">Create redirects through the User Portal<\/a><\/li>\n\n\n\n<li><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/web-rules-engine\/#toc-rewrite-rules\">Create rewrites using the Web Rules Engine.<\/a><\/li>\n\n\n\n<li>Bulk import redirects by contacting&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/my.wpengine.com\/support\">WP Engine Support<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Add redirects rules to the&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"noreferrer noopener\">Redirection plugin<\/a><\/li>\n\n\n\n<li>Manage redirects in&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/yoast.com\/wordpress\/plugins\/seo\/redirects-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">Yoast SEO Premium<\/a>\u2018s redirect manager<\/li>\n<\/ul>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>More Than 1000 Redirects<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Importing redirects into the WP Engine Nginx configuration will not be efficient at this quantity, due to bloating and overhead.<\/li>\n\n\n\n<li>We suggest loading redirects into the&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"noreferrer noopener\">Redirection plugin<\/a>&nbsp;or, if you\u2019re using Yoast SEO, manage redirects in&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/yoast.com\/wordpress\/plugins\/seo\/redirects-manager\/\" target=\"_blank\" rel=\"noreferrer noopener\">Yoast Premium<\/a><\/li>\n<\/ul>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-2\">Note<\/h3>\n\n\n\n<p>It is always recommended to consolidate as many rules as possible using&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/regex\/\">RegEx<\/a>,&nbsp;regardless of the number of redirects needed.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<a name=\"access\" data-analytics-track-visibility=\"yes\"><\/a>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-access-redirect-rules\" data-analytics-track-visibility=\"yes\">Access Redirect Rules<\/h2>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-3\">Note<\/h3>\n\n\n\n<p>This option is deprecated. It will still work for sites that are already using the redirect rules page. For all other sites, new redirects should be added using the&nbsp;<strong>Rewrite rules<\/strong>&nbsp;tab of the&nbsp;<a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/web-rules-engine#toc-rewrite-rules\" target=\"_blank\" rel=\"noreferrer noopener\">Web Rules<\/a> page.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<ol class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Login to the <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/my.wpengine.com\/\">User Portal<\/a><\/li>\n\n\n\n<li>Select the <strong>environment name<\/strong> you want to configure a redirect for\n<ul class=\"wp-block-list\">\n<li><strong>NOTE<\/strong>: Redirects for a specific domain will only work if the <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/add-domain-in-user-portal\/\">domain is also mapped<\/a> to the same environment<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Select <strong>Redirect Rules<\/strong> (You may have to expand the <strong>Advanced<\/strong> dropdown section)<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\" data-analytics-track-visibility=\"yes\"><img decoding=\"async\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/07\/redirect-rules-page.png\" alt=\"Screenshot of an environment's Redirect Rules page in the WP Engine User Portal \" class=\"wp-image-7125\"><\/figure>\n\n\n\n<a name=\"add\" data-analytics-track-visibility=\"yes\"><\/a>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-add-a-redirect-rule\" data-analytics-track-visibility=\"yes\">Add a Redirect Rule<\/h2>\n\n\n\n<p data-analytics-track-visibility=\"yes\">The most common redirect is to simply have one page redirect to another. To set this up, click the <i>New Redirect Rule<\/i> button.<\/p>\n\n\n\n<ol class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Click <strong>Add Redirect Rule<\/strong><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\" data-analytics-track-visibility=\"yes\"><img decoding=\"async\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/06\/click-add-redirect-rule.png\" alt=\"Screenshot of the WP Engine User Portal showing the Redirect Rules page and an Add Redirect Rule button on the right side.\" class=\"wp-image-7126\"><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>You will be presented with a window like the following<\/li>\n\n\n\n<li>Configure your redirect and click <strong>Save <\/strong>or<strong> Add another<\/strong><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\" data-analytics-track-visibility=\"yes\"><img decoding=\"async\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/06\/add-redirect-rule-popup.png\" alt=\"Screenshot of the Add Redirect Rule popup window in the WP Engine User Portal.\" class=\"wp-image-7127\" style=\"width:559px\"><\/figure>\n\n\n\n<a name=\"fields\" data-analytics-track-visibility=\"yes\"><\/a>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-redirect-rule-configuration-fields\" data-analytics-track-visibility=\"yes\">Redirect Rule Configuration Fields<\/h2>\n\n\n\n<p data-analytics-track-visibility=\"yes\">It\u2019s important to note that redirect rules will be read from top to bottom. If a rule is not specific<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-redirect-name\" data-analytics-track-visibility=\"yes\">Redirect Name<\/h3>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>A simple title to describe what the redirect is for<\/li>\n\n\n\n<li>The name does not impact the redirect itself<\/li>\n\n\n\n<li>Can be left blank, if a name is not given, a number will be applied<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-domain\" data-analytics-track-visibility=\"yes\">Domain<\/h3>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Use the dropdown to select the domain(s) this redirect will work for.<\/li>\n\n\n\n<li>Select <strong>All Domains<\/strong> to allow the redirect to work for any domain mapped to this environment.<\/li>\n\n\n\n<li>Select a specific <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/add-domain-in-user-portal\/\">domain mapped to your account<\/a> to only apply the redirect to that domain, and no other domains.\n<ul class=\"wp-block-list\">\n<li>For example, say this environment has the following domains: <code>ilovepuppies.com<\/code>, <code>littledogs.com<\/code> and <code>dogshop.wpengine.com<\/code><\/li>\n\n\n\n<li>Selecting <code>ilovepuppies.com<\/code> from the dropdown would tell the rule to only redirect requests to <code>ilovepuppies.com<\/code> and <em>not<\/em> redirect traffic coming into the same path through the domains <code>dogshop.wpengine.com<\/code> or <code>littledogs.com<\/code>. <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>For multisite networks with <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/what-is-wordpress-multisite\/#toc-custom-main-site-domain\">Domain Wildcarding<\/a> enabled, you will also see an option called <em>Use Domain Wildcards (Advanced)<\/em>. This option will use both the mapped domain and any wildcard domains.<\/li>\n\n\n\n<li>If you do not see a domain listed that you\u2019d like to set a unique redirect for, make sure the <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/add-domain-in-user-portal\/\">domain is mapped<\/a> and <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/add-domain-in-user-portal\/#domainredirects\">remove any redirects to <em>other<\/em> domains<\/a>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-source\" data-analytics-track-visibility=\"yes\">Source<\/h3>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Reading the URL that you want to map from the left to the Right, the \u201cSource\u201d part will be whatever follows the domain. When looking at <code>http:\/\/domain.com\/testing\/123<\/code>, the \u201cSource Input\u201d would be: <code>^\/testing\/123<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Required field<\/li>\n\n\n\n<li>The original URL path that when requested will be redirected<\/li>\n\n\n\n<li><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/regex\/\">Supports RegEx<\/a> (A great tool to use to test your RegEx is <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/regex101.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">RegEx101<\/a>)<\/li>\n\n\n\n<li>Do not enter the domain here<\/li>\n\n\n\n<li>Start with the symbol <code>^<\/code> to say \u201cbegin here\u201d, this is required for the source field unless you include the domain<\/li>\n\n\n\n<li>End with the symbols <code>\/?$<\/code> to say \u201cend here\u201d<\/li>\n\n\n\n<li>You cannot match a Query String, or Argument in the Source Input. You will need to look in the Advanced Settings in order to do this (details below).<\/li>\n<\/ul>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>EX<\/strong>: <code><strong>^<\/strong>\/old-page<strong>\/?$<\/strong><\/code><\/p>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-4\">Note<\/h3>\n\n\n\n<p>If you capture something in the Source Input by placing parentheses around it, then you can call it later in the \u201cDestination\u201d using the <code>$1<\/code> variable referrer.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-destination\" data-analytics-track-visibility=\"yes\">Destination<\/h3>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Required field<\/li>\n\n\n\n<li>The URL path the redirect will result in<\/li>\n\n\n\n<li><strong>Does not<\/strong> support RegEx<\/li>\n<\/ul>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>EX:<\/strong> <code>https:\/\/ilovepuppies.com\/new-page\/<\/code><\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Variables set in the Source field can be called in the Destination field. With a Source Input of <code>^\/testing\/<strong>(123)<\/strong><\/code> and a Destination of <code>http:\/\/domain.com\/<strong>$1<\/strong><\/code>, then the Ending URL will be <code>http:\/\/domain.com\/123<\/code>.<\/p>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-5\">Note<\/h3>\n\n\n\n<p>Break type redirects have additional requirements for the Domain field. See the <a href=\"#break\">Break section below<\/a> for more information.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\" data-analytics-track-visibility=\"yes\"><img decoding=\"async\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/06\/redirect-rule-1.png\" alt=\"Screenshot of adding an example redirect rule in the WP Engine User Portal.\" class=\"wp-image-7128\" style=\"width:512px\"><\/figure>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If I have the following domains on this environment: <code>ilovepuppies.com<\/code>,&nbsp;<code>littledogs.com<\/code>,&nbsp;<code>dogshop.wpengine.com<\/code><\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">The above rule would create all of the following redirects:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li><code>ilovepuppies.com\/old-page<\/code> -&gt; <code>https:\/\/ilovepuppies.com\/new-page\/<\/code><\/li>\n\n\n\n<li><code>littledogs.com\/old-page<\/code> -&gt; <code>https:\/\/ilovepuppies.com\/new-page\/<\/code><\/li>\n\n\n\n<li><code>dogshop.wpengine.com\/old-page<\/code> -&gt; <code>https:\/\/ilovepuppies.com\/new-page\/<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-advanced-settings\" data-analytics-track-visibility=\"yes\">Advanced Settings<\/h2>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Clicking on Advanced Settings will reveal two items:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-match-args\" data-analytics-track-visibility=\"yes\">Match args<\/h3>\n\n\n\n<p data-analytics-track-visibility=\"yes\">An arg is another name for a URL query. You can spot them by a question mark in the URL. The \u201carg\u201d is everything after the <code>?<\/code> symbol. For example, in the URL <code>domain.com\/testing?input=this<\/code>the arg would be <code>input=this<\/code>.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If you <strong>do not<\/strong> wish to have the arg carried over and appended to the destination, you must also add a <code>?<\/code> to the end of your Destination source field.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If you <strong>do<\/strong> wish to have the arg appended to the destination, no question mark is necessary in the Destination source field.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>EX<\/strong>: If the Source is <code>domain.com\/testing?input=this<\/code> and the Destination is <code>https:\/\/wpengine.com\/testingthis\/<\/code>, this will redirect the URL to <code>https:\/\/wpengine.com\/testingthis\/?input=this<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\" data-analytics-track-visibility=\"yes\"><img decoding=\"async\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/06\/redirect-rule-2.png\" alt=\"Screenshot of adding an example redirect rule to match args in the WP Engine User Portal.\" class=\"wp-image-7129\" style=\"width:462px\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-rewrite-type\" data-analytics-track-visibility=\"yes\">Rewrite type<\/h3>\n\n\n\n<p data-analytics-track-visibility=\"yes\">This can be changed based on your preference of response codes.<\/p>\n\n\n\n<a id=\"break\" data-analytics-track-visibility=\"yes\"><\/a>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Redirections#Permanent_redirections\" target=\"_blank\" rel=\"noopener noreferrer\">301 Permanent<\/a><\/strong> \u2013 Default setting. Tells search engines to remove the old URL from the search index and update it with the new one.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong><a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" rel=\"noopener noreferrer\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Redirections#Temporary_redirections\" target=\"_blank\">302 Temporary<\/a><\/strong> \u2013 Tells search engines not to update their index. The purpose is to maintain SEO rank on the original Source URL. <strong>EX<\/strong>: Redirecting your home page to a \u201ccoming-soon\u201d page.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>Break<\/strong> \u2013 A \u201cbreak\u201d redirects the user to a different page on the same domain, without updating the address bar or sending a response code (301 or 302) is not returned. A break is also called also called an internal redirect, this can be used to \u201cmask\u201d a redirect. For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li><strong>Domain<\/strong>: Select your domain\n<ul class=\"wp-block-list\">\n<li>Cannot be \u201cAll domains\u201d<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Source<\/strong>: <code>^\/my-page<\/code>\n<ul class=\"wp-block-list\">\n<li>Domain must match the Destination field<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Destination<\/strong>: <code>\/backend_page?id=123<\/code>\n<ul class=\"wp-block-list\">\n<li>Domain must match the Source field<\/li>\n\n\n\n<li>Do not use HTTP or HTTPS<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>This will load the content from <code>\/backend_page?id=123<\/code> while keeping the URL in the address bar as <code>domain.com\/my-page<\/code><\/li>\n<\/ul>\n\n\n\n<a name=\"bulk-import\" data-analytics-track-visibility=\"yes\"><\/a>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-submitting-redirects-in-bulk\" data-analytics-track-visibility=\"yes\">Submitting Redirects in Bulk<\/h2>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-6\">Note<\/h3>\n\n\n\n<p>Since the redirect rules page will eventually be deprecated, bulk redirect imports should be done in the <strong>Rewrite Rules<\/strong> tab of the <strong>Web Rules<\/strong> page instead. <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/web-rules-engine\/#toc-bulk-import-rewrite-rules\" target=\"_blank\" rel=\"noreferrer noopener\">View details about bulk importing rewrite rules here<\/a>.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If you\u2019d like to import redirects in bulk this is entirely possible. You will need to reach out to <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/my.wpengine.com\/support\">WP Engine Support<\/a> with a formatted file ready to import. Each rule must be on its own line to import properly and formatted similarly to the examples below.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">The WP Engine User Portal supports up to about 1000 redirects. After 1000 redirect rules we\u2019ve seen performance issues, so we strongly recommend keeping this list under the soft limit of 1000.<\/p>\n\n\n\n<section class=\"attention-block attention-block--info\" role=\"note\" data-analytics-track-visibility=\"yes\">\n\t<div class=\"attention-block__inner\">\n\t\t\t\t<div class=\"attention-block__icon\">\n\t\t\t<span class=\"screen-reader-text\">Information<\/span>\n\t\t\t<span aria-hidden=\"true\"><svg viewBox=\"0 2 24 24\" fill=\"none\">\n<path d=\"M12 11C12.5523 11 13 10.5523 13 10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10C11 10.5523 11.4477 11 12 11Z\" fill=\"currentColor\" \/>\n<path d=\"M12 12C12.5523 12 13 12.4477 13 13V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V14C10.4477 14 10 13.5523 10 13C10 12.4477 10.4477 12 11 12H12Z\" fill=\"currentColor\" \/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 3C5.92487 3 1 7.92487 1 14C1 20.0751 5.92487 25 12 25C18.0751 25 23 20.0751 23 14C23 7.92487 18.0751 3 12 3ZM3 14C3 9.02944 7.02944 5 12 5C16.9706 5 21 9.02944 21 14C21 18.9706 16.9706 23 12 23C7.02944 23 3 18.9706 3 14Z\" fill=\"currentColor\" \/>\n<\/svg>\n<\/span>\n\t\t<\/div>\n\t\t\t\t<div class=\"attention-block__content\">\n\t\t\t<div class=\"attention-block__message\">\n\n<h3 class=\"wp-block-heading\" id=\"toc-note-7\">Note<\/h3>\n\n\n\n<p>302 (Temporary) rules cannot be bulk imported at this time, and will be converted to 301 (Permanent) automatically. Redirects can be changed to 302 after import via the User Portal, or set as 302 when added to the User Portal individually.<\/p>\n\n<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Before continuing, we recommend taking the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>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 \u201crewrites\u201d, where requests matching a specific pattern are redirected based on that pattern.<\/li>\n\n\n\n<li>Ensure the rules are in a text document (something easy to open and copy\/paste from), and formatted like <strong>.htaccess<\/strong>&nbsp;redirect rules.*<\/li>\n<\/ul>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If these rules are already in your site\u2019s .htaccess file from a previous host, feel free to copy the rules and paste them into a .txt file for our Support team to import for you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-bulk-import-formatting-examples\" data-analytics-track-visibility=\"yes\">Bulk Import Formatting Examples<\/h3>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>Redirect \u201c<code>domain.com\/path\/match\/<\/code>\u201d to \u201c<code>domain.com\/something\/<\/code>\u201d<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code line-numbers\" data-analytics-track-visibility=\"yes\"><code>^\/path\/match\/?$ http:\/\/domain.com\/something\/<\/code><\/pre>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>Alternative format: Redirect \u201c<code>domain.com\/path\/match\/<\/code>\u201d to \u201c<code>domain.com\/something\/<\/code>\u201d<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code line-numbers\" data-analytics-track-visibility=\"yes\"><code>Redirect 301 ^\/path\/match\/?$ http:\/\/domain.com\/something\/<\/code><\/pre>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>If there are multiple domains on an environment and you wish to redirect a single domain to a specific location<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code line-numbers\" data-analytics-track-visibility=\"yes\"><code>olddomain.com\/path\/match\/?$ http:\/\/newdomain.com\/something\/<\/code><\/pre>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>Redirect \u201c<code>domain.com\/path\/more\/anything<\/code>\u201d to \u201c<code>domain.com\/anything<\/code>\u201d<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code line-numbers\" data-analytics-track-visibility=\"yes\"><code>RewriteRule ^\/path\/more\/(.*) http:\/\/domain.com\/$1 [R=301,L]<\/code><\/pre>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>Redirect a domain with an argument (<code>?example-arg=123<\/code>) on the end: \u201c<code>domain.com\/path\/match\/?example-arg=123<\/code>\u201d to \u201c<code>domain.com\/something\/<\/code>\u201c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code line-numbers\" data-analytics-track-visibility=\"yes\"><code>Redirect 301 ^\/path\/match\/?example-arg=123 http:\/\/domain.com\/something\/<\/code><\/pre>\n\n\n\n<p data-analytics-track-visibility=\"yes\"><a name=\"info\"><\/a><\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-export-redirect-rules\" data-analytics-track-visibility=\"yes\">Export Redirect Rules<\/h2>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Currently there is not a way to self serve an export of your <a href=\"#toc-access-redirect-rules\">Redirect Rules<\/a> from the WP Engine User Portal. If you need to export your redirect rules to have a backup copy or to see the current text format as a <a href=\"#toc-submitting-redirects-in-bulk\">Bulk Import<\/a> example, you can contact <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/my.wpengine.com\/support\" target=\"_blank\" rel=\"noreferrer noopener\">Support<\/a> and ask a Support Agent to run their internal command via SSH that will download a copy of the redirect rules in text (.txt) format to the root <code>\/_wpeprivate<\/code> folder of your website which you can then download with <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/sftp\/\" target=\"_blank\" rel=\"noreferrer noopener\">SFTP<\/a>. <\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc-additional-information\" data-analytics-track-visibility=\"yes\">Additional Information<\/h2>\n\n\n\n<p data-analytics-track-visibility=\"yes\">We use what is called Regular Expressions (also known as Regex) in the&nbsp;<em>Source<\/em> section of our redirects. Regular Expressions are very useful because they allow you to specifically create more advanced search strings which can be very beneficial for configuring advanced redirects. If you would like to learn more about how they work, please see our <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/regex\/\">Common Regex Used For Redirect<span style=\"text-decoration: underline\">&nbsp;Rules<\/span><\/a>&nbsp;article.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If you run into issues where a URL is redirecting somewhere unintended, look into the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li><span style=\"color: initial;, sans-serif\">Check any SEO or redirect plugins<\/span><\/li>\n\n\n\n<li>Check your WP Engine <a href=\"#toc-add-a-redirect-rule\">server-level redirects<\/a><\/li>\n\n\n\n<li>Review categories and trash for similar or conflicting URLs<\/li>\n<\/ul>\n\n\n\n<p data-analytics-track-visibility=\"yes\">If this does not resolve the issue, it may be because the post\u2019s URL was changed and WordPress\u00ae is trying help <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"outbound\" href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_check_for_changed_slugs\/\" target=\"_blank\" rel=\"noreferrer noopener\">redirect the old post\u2019s URL to the new one automatically<\/a>.<sup><a href=\"#legal-disclaimer\">1<\/a><\/sup> This is intended to be helpful but may cause issues if you are not aware of the functionality existing. If you wish to remove the redirect you\u2019ll need to <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/run-query-phpmyadmin\/#toc-access-database-with-phpmyadmin\">access the database<\/a> and locate the <code>wp_postmeta<\/code> table, then clear out the <code>_wp_old_slug<\/code> value for the specific post.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-redirect-rule-order\" data-analytics-track-visibility=\"yes\">Redirect Rule Order<\/h3>\n\n\n\n<p data-analytics-track-visibility=\"yes\">When Organizing Redirect Rules, keep in mind that redirects will be applied from the top to the bottom.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">In the example below, Rule 1 will be applied first because Rule 1 is placed above Rule 2.<\/p>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Rule 1:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Source: <code>^\/someurl<\/code><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Destination: <code>https:\/\/example1.com\/<\/code><\/li>\n<\/ul>\n\n\n\n<p data-analytics-track-visibility=\"yes\">Rule 2:<\/p>\n\n\n\n<ul class=\"wp-block-list\" data-analytics-track-visibility=\"yes\">\n<li>Source: <code>^\/someurl<\/code><\/li>\n\n\n\n<li>Destination: <code>https:\/\/example2.com\/<\/code><\/li>\n<\/ul>\n\n\n\n\n\n<p data-analytics-track-visibility=\"yes\"><strong>NEXT STEP: <a data-analytics-action-type=\"link\" data-analytics-link-location=\"Post Content\" data-analytics-link-type=\"internal\" href=\"https:\/\/wpengine.com\/support\/regex\/\">Check out common examples of RegEx for redirects<\/a><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>This article explains what redirects are, how to configure them on our platform along with links and tutorials containing further details.<\/p>\n","protected":false},"featured_media":5937,"template":"","meta":{"_acf_changed":false,"mediapress_draft_name":"","_mediapress_is_draft_copy":false},"audience":[],"buyer-stage":[],"company-and-culture":[],"content-type":[],"location":[],"persona":[],"product":[],"support-category":[137],"support-topic":[162],"topic":[],"use-cases":[],"class_list":["post-7615","support","type-support","status-publish","has-post-thumbnail","hentry","support-category-developer-advanced","support-topic-redirects"],"acf":{"trending":false,"taxonomy_selector":{"":null,"taxonomy-audience":false,"taxonomy-buyer-stage":false,"taxonomy-company-and-culture":false,"taxonomy-content-type":false,"taxonomy-location":false,"taxonomy-persona":false,"taxonomy-product":false,"taxonomy-support-topic":[162],"taxonomy-topic":false,"taxonomy-use-cases":false}},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Manage 301 and 302 Redirect Rules | WP Engine Support<\/title>\n<meta name=\"description\" content=\"Redirects are a way of setting up rules to have pages redirect automatically for your visitors.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpengine.com\/support\/redirect\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Manage 301 and 302 Redirect Rules | WP Engine Support\" \/>\n<meta property=\"og:description\" content=\"Redirects are a way of setting up rules to have pages redirect automatically for your visitors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/support\/redirect\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/07\/redirect-rules-page.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1\" \/>\n\t<meta property=\"og:image:height\" content=\"1\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/\",\"url\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/\",\"name\":\"Manage 301 and 302 Redirect Rules | WP Engine Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpengine.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpengine.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/wp-engine-featured-image.png\",\"datePublished\":\"2014-05-29T17:00:01+00:00\",\"description\":\"Redirects are a way of setting up rules to have pages redirect automatically for your visitors.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wpengine.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/wp-engine-featured-image.png\",\"contentUrl\":\"https:\\\/\\\/wpengine.com\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/wp-engine-featured-image.png\",\"caption\":\"WP Engine\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpengine.com\\\/support\\\/redirect\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpengine.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"301 and 302 Redirect Rules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpengine.com\\\/#website\",\"url\":\"https:\\\/\\\/wpengine.com\\\/\",\"name\":\"WP Engine\u00ae\",\"description\":\"Managed Hosting for WordPress\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpengine.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpengine.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wpengine.com\\\/#organization\",\"name\":\"WP Engine\",\"url\":\"https:\\\/\\\/wpengine.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpengine.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wpengine.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/WPEngine_OGImage-1.webp\",\"contentUrl\":\"https:\\\/\\\/wpengine.com\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/WPEngine_OGImage-1.webp\",\"width\":1200,\"height\":630,\"caption\":\"WP Engine\"},\"image\":{\"@id\":\"https:\\\/\\\/wpengine.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/wpengine\\\/\",\"https:\\\/\\\/x.com\\\/wpengine\",\"https:\\\/\\\/www.instagram.com\\\/wpengine\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpengine\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCJeAEAxX69v24CUBZ0WBYSg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Manage 301 and 302 Redirect Rules | WP Engine Support","description":"Redirects are a way of setting up rules to have pages redirect automatically for your visitors.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpengine.com\/support\/redirect\/","og_locale":"en_US","og_type":"article","og_title":"Manage 301 and 302 Redirect Rules | WP Engine Support","og_description":"Redirects are a way of setting up rules to have pages redirect automatically for your visitors.","og_url":"https:\/\/wpengine.com\/support\/redirect\/","og_site_name":"WP Engine\u00ae","article_publisher":"https:\/\/www.facebook.com\/wpengine\/","og_image":[{"url":"https:\/\/wpengine.com\/wp-content\/uploads\/2024\/07\/redirect-rules-page.png","width":1,"height":1,"type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/support\/redirect\/","url":"https:\/\/wpengine.com\/support\/redirect\/","name":"Manage 301 and 302 Redirect Rules | WP Engine Support","isPartOf":{"@id":"https:\/\/wpengine.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpengine.com\/support\/redirect\/#primaryimage"},"image":{"@id":"https:\/\/wpengine.com\/support\/redirect\/#primaryimage"},"thumbnailUrl":"https:\/\/wpengine.com\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","datePublished":"2014-05-29T17:00:01+00:00","description":"Redirects are a way of setting up rules to have pages redirect automatically for your visitors.","breadcrumb":{"@id":"https:\/\/wpengine.com\/support\/redirect\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/support\/redirect\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/support\/redirect\/#primaryimage","url":"https:\/\/wpengine.com\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","contentUrl":"https:\/\/wpengine.com\/wp-content\/uploads\/2019\/12\/wp-engine-featured-image.png","caption":"WP Engine"},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/support\/redirect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/"},{"@type":"ListItem","position":2,"name":"301 and 302 Redirect Rules"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/#website","url":"https:\/\/wpengine.com\/","name":"WP Engine\u00ae","description":"Managed Hosting for WordPress","publisher":{"@id":"https:\/\/wpengine.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wpengine.com\/#organization","name":"WP Engine","url":"https:\/\/wpengine.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/#\/schema\/logo\/image\/","url":"https:\/\/wpengine.com\/wp-content\/uploads\/2025\/09\/WPEngine_OGImage-1.webp","contentUrl":"https:\/\/wpengine.com\/wp-content\/uploads\/2025\/09\/WPEngine_OGImage-1.webp","width":1200,"height":630,"caption":"WP Engine"},"image":{"@id":"https:\/\/wpengine.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wpengine\/","https:\/\/x.com\/wpengine","https:\/\/www.instagram.com\/wpengine\/","https:\/\/www.linkedin.com\/company\/wpengine\/","https:\/\/www.youtube.com\/channel\/UCJeAEAxX69v24CUBZ0WBYSg"]}]}},"_links":{"self":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/support\/7615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/types\/support"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/media\/5937"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/media?parent=7615"}],"wp:term":[{"taxonomy":"audience","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/audience?post=7615"},{"taxonomy":"buyer-stage","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/buyer-stage?post=7615"},{"taxonomy":"company-and-culture","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/company-and-culture?post=7615"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/content-type?post=7615"},{"taxonomy":"location","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/location?post=7615"},{"taxonomy":"persona","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/persona?post=7615"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/product?post=7615"},{"taxonomy":"support-category","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/support-category?post=7615"},{"taxonomy":"support-topic","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/support-topic?post=7615"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/topic?post=7615"},{"taxonomy":"use-cases","embeddable":true,"href":"https:\/\/wpengine.com\/wp-json\/wp\/v2\/use-cases?post=7615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}