{"id":12641,"date":"2015-09-02T11:00:19","date_gmt":"2015-09-02T16:00:19","guid":{"rendered":"https:\/\/getflywheel.com\/?p=12641"},"modified":"2023-03-27T14:58:06","modified_gmt":"2023-03-27T19:58:06","slug":"how-to-create-a-wordpress-redirect","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/","title":{"rendered":"How to Create a WordPress Redirect"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There may be times that you want to add a redirect within your WordPress website to point your visitors from one URL to another. For example, if you change the permalink structure of your site or remove posts or pages, if someone tries to visit that old link, all they\u2019re likely to find is a \u201c404 page not found\u201d message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thankfully like many things within WordPress, there are a number of ways to achieve redirects quickly and simply:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Redirect Plugins:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">There are a number of plugins out there that you can use to take care of redirects. A personal favorite is <a href=\"https:\/\/wordpress.org\/plugins\/quick-pagepost-redirect-plugin\/\" target=\"_blank\" rel=\"noopener noreferrer\">Quick Page\/Post Redirect<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/getflywheel-images.s3.us-east-2.amazonaws.com\/uploads\/2015\/09\/wordpress-redirect-plugin.png\" alt=\"wordpress-redirect-plugin\" class=\"wp-image-12648\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This plugin lets you do exactly what it says on the tin &#8211; redirect pages and posts, quickly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once installed, you will find a redirects section in the page\/post editor in the back end of WordPress. In here, simply select the type of redirect you would like.The type of redirect you choose will depend on whether the redirect is temporary or permanent &#8211; in other words, whether you simply want a redirect for the time being, or you are not planning on switching it back. Your options are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>301 permanent redirect:<\/strong>&nbsp;If the page you are redirecting will always be redirected, more often than not, you\u2019ll want to choose this option, as it informs Google to redirect all traffic to the new page, forever.<\/li>\n\n\n\n<li><strong>302\/307&nbsp;temporary redirect:<\/strong>&nbsp;The opposite of the above. If you plan on turning the redirected page\u2019s URL back on at some point and don\u2019t want Google to redirect all traffic, then you can choose this option.<\/li>\n\n\n\n<li><strong>Meta redirect:<\/strong>&nbsp;This redirect actually happens after the initial page has loaded. It adds code to the original page\u2019s source in order to cause the page to redirect after a set period of time. This may be useful if you wanted to add a message to the original page to tell visitors that the page they\u2019re looking for is now at a new address, but otherwise, a 301 or 302 redirect would be sufficient.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve chosen your redirect type, simply set where you want the page to redirect to, and mark it as active. When you publish\/save the page or post the redirect will be active.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, you can add a whole list of redirects in the plugin settings section itself. This allows you to create redirects for pages that perhaps don\u2019t even have an entry in the WordPress CMS, which can be particularly helpful if you have previously moved from a non-WordPress site. You can add redirects to any link relative to your site\u2019s URL; as long as the link begins with your site\u2019s web address, you can add a redirect for it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" src=\"https:\/\/getflywheel-images.s3.us-east-2.amazonaws.com\/uploads\/2015\/09\/wordpress-redirect-computer.jpg\" alt=\"wordpress-redirect-computer\" class=\"wp-image-12650\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">.htaccess Redirect<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your site is on apache and you have access to your .htaccess file, you can use it to add redirects to your site. If you don\u2019t know what you\u2019re doing with .htaccess files, it might be worth sticking to the plugin method above, as making an error in this critical file can cause some pretty serious site-wide consequences (such as it crashing completely and locking you out of WordPress!)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But for those who like to venture into this file, simply add the following line for each of your redirects:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Redirect 301 \/pagetoberedirected.html http:\/\/www.yoursite.com\/newpage<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first URL is the one that you want to redirect, the second is where you want visitors to land instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And that\u2019s it! There\u2019s nothing much to redirects, but redirecting visitors from broken links can improve their user experience and can help with your ranking amongst Google, so it&#8217;s definitely worth giving it a go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There may be times that you want to add a redirect within your WordPress website to point your visitors from one URL to another. For example, if you change the permalink structure of your site or remove posts or pages, if someone tries to visit that old link, all they\u2019re likely to find is a<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":421,"featured_media":141925,"template":"","resource-topic":[901],"resource-role":[895,896,897],"resource-type":[916],"class_list":["post-12641","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create a WordPress Redirect<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to quickly and simply add a redirect within your WordPress website and point visitors from one URL to another.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a WordPress Redirect\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to quickly and simply add a redirect within your WordPress website and point visitors from one URL to another.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-27T19:58:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2015\/09\/WP-redirect_1200x627.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"627\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2015\/09\/WP-redirect_1200x627.png\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/\",\"name\":\"How to Create a WordPress Redirect\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2015-09-02T16:00:19+00:00\",\"dateModified\":\"2023-03-27T19:58:06+00:00\",\"description\":\"This tutorial will show you how to quickly and simply add a redirect within your WordPress website and point visitors from one URL to another.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Create a WordPress Redirect\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/232b47bd3bc1d83bbff5f0f9ce1552cd\",\"name\":\"John Pawson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f4fda5841c95ac18654de9085a157a4b72868f97825fc2e9347ff2f12e2775c6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f4fda5841c95ac18654de9085a157a4b72868f97825fc2e9347ff2f12e2775c6?s=96&d=mm&r=g\",\"caption\":\"John Pawson\"},\"description\":\"John Pawson is a writer and Creative Marketing Consultant from the South East of England. An Associate of the UK\u2019s Chartered Institute of Marketing, John has worked with brands across a diverse range of industries in client-side, agency, and consultancy capacities. John currently works full-time as Marketing Consultant for award-winning marketing agency, Square1. He also occasionally checks in on his own website, jdpawson.co.uk, between reading, writing, and spending time with his family.\",\"sameAs\":[\"http:\/\/jdpawson.co.uk\/\",\"https:\/\/uk.linkedin.com\/in\/johnpawson\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a WordPress Redirect","description":"This tutorial will show you how to quickly and simply add a redirect within your WordPress website and point visitors from one URL to another.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Create a WordPress Redirect","og_description":"This tutorial will show you how to quickly and simply add a redirect within your WordPress website and point visitors from one URL to another.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2023-03-27T19:58:06+00:00","og_image":[{"width":1200,"height":627,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2015\/09\/WP-redirect_1200x627.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2015\/09\/WP-redirect_1200x627.png","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/","name":"How to Create a WordPress Redirect","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2015-09-02T16:00:19+00:00","dateModified":"2023-03-27T19:58:06+00:00","description":"This tutorial will show you how to quickly and simply add a redirect within your WordPress website and point visitors from one URL to another.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-create-a-wordpress-redirect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"How to Create a WordPress Redirect"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/232b47bd3bc1d83bbff5f0f9ce1552cd","name":"John Pawson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f4fda5841c95ac18654de9085a157a4b72868f97825fc2e9347ff2f12e2775c6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f4fda5841c95ac18654de9085a157a4b72868f97825fc2e9347ff2f12e2775c6?s=96&d=mm&r=g","caption":"John Pawson"},"description":"John Pawson is a writer and Creative Marketing Consultant from the South East of England. An Associate of the UK\u2019s Chartered Institute of Marketing, John has worked with brands across a diverse range of industries in client-side, agency, and consultancy capacities. John currently works full-time as Marketing Consultant for award-winning marketing agency, Square1. He also occasionally checks in on his own website, jdpawson.co.uk, between reading, writing, and spending time with his family.","sameAs":["http:\/\/jdpawson.co.uk\/","https:\/\/uk.linkedin.com\/in\/johnpawson"]}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2015\/09\/WP-redirect_343x245.png","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Agency, Developer, Freelancer","topic":"<strong>Topics:<\/strong> WordPress","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/12641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/141925"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=12641"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=12641"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=12641"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=12641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}