{"id":4512,"date":"2020-02-17T16:00:00","date_gmt":"2020-02-17T15:00:00","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=4512"},"modified":"2021-06-29T12:39:42","modified_gmt":"2021-06-29T10:39:42","slug":"how-to-create-301-redirects-in-wordpress","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-create-301-redirects-in-wordpress\/","title":{"rendered":"How to Create 301 Redirect in WordPress"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Have you ever clicked on a link only to be greeted by a 404 page informing you the content you\u2019re looking for has been moved? It\u2019s annoying, right? Which is exactly why you want to make sure this never happens to your website visitors.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If you ever change your website URL, or even the URL of a single page on your site, you can ensure your visitors still have access to that content by simply redirecting them to the new URL. And that\u2019s precisely what 301 redirects are for.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]In this article, we\u2019ll show you how to create 301 redirects in WordPress. The subjects we\u2019ll talk about include:[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#what-are-http-status-codes\">What Are HTTP Status Codes<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#why-you-need-301-redirects\">Why You Need 301 Redirects on Your WordPress Website<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#how-long-should-you-keep-a-301-redirect-active\">How Long Should You Keep a 301 Redirect Active<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#set-up-301-redirects-with-htaccess\">How to Set Up 301 Redirects in WordPress With .htaccess <\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">\n<a href=\"#using-plugins\">Create 301 Redirects Using Plugins<\/a>\n<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;31px&#8221;][vc_column_text]First, let\u2019s take a look at what the \u201c301\u201d in 301 redirect actually means.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"what-are-http-status-codes\"><\/a>What Are HTTP Status Codes<\/h2>\n<p>[\/vc_column_text][vc_column_text]To put it simply, 301 is an HTTP response status code that indicates the page we\u2019ve requested has been permanently moved elsewhere. And 301 is just one of many HTTP responses that tell us what\u2019s happening with an URL.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You see, when you want to access a certain page, your browser sends a request to that website\u2019s server. And there are <strong>five classes of HTTP response status codes a server can send to a browser: 1xx (informational response), 2xx (successful), 3xx (redirection), 4xx (client error), 5xx (server error)<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The fastest way to check HTTP codes on your own website is by pressing the F12 button and then checking the <em><strong>Network<\/strong><\/em> tab.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]For instance, if everything\u2019s working like a charm, a server will respond with a 2xx HTTP status code, which means that the desired content will successfully be served to the visitor.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code.jpg\" class=\"attachment-full size-full\" alt=\"HTTP Status Code\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]As for the <strong>3xx HTTP response codes<\/strong>, they signify a page has been removed and that users will be redirected to the new URL. <strong>There are several types of redirects<\/strong>. The most commonly used are:[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>301<\/strong> &#8211; moved permanently<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>302<\/strong> &#8211; moved temporarily, e.g. for A\/B testing<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>307<\/strong> &#8211; moved temporarily, e.g. during website maintenance<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><strong>Meta Refresh<\/strong> &#8211; a redirect that automatically reloads the current page after a certain time period; the following message is an example of a meta refresh redirect &#8211; If you are not redirected in five seconds, click here.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"why-you-need-301-redirects\"><\/a>Why You Need 301 Redirects on Your WordPress Website<\/h2>\n<p>[\/vc_column_text][vc_column_text]If you decide to use a 301 redirect, all the existing traffic will be seamlessly transferred from the old URL to the new one. You won\u2019t lose any leads or potential conversions. In fact, in 2016 one of Google\u2019s webmasters, Gary Illyes, <a href=\"https:\/\/twitter.com\/methode\/status\/757923179641839616\" target=\"_blank\" rel=\"noopener noreferrer\">confirmed that 3xx redirects don\u2019t lose PageRank<\/a>, which means they\u2019re just as powerful as the original page or a post.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Some of the most common reasons why you may want to use a 301 redirect<\/strong> are the following:[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">You want to delete a page or a post<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">You\u2019d like to change permalinks<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">You want to migrate your website from HTTP to HTTPS<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Or you\u2019re considering moving your website to a new domain<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"how-long-should-you-keep-a-301-redirect-active\"><\/a>How Long Should You Keep a 301 Redirect Active?<\/h2>\n<p>[\/vc_column_text][vc_column_text]Google\u2019s webmaster John Muller discussed the question of <a href=\"https:\/\/www.youtube.com\/watch?v=QWL864VlW7I&amp;t=24m12s\" target=\"_blank\" rel=\"noopener noreferrer\">how long to keep a 301 redirect active<\/a> during a hangout he did back in 2015. He said that theoretically, you could keep a 301 redirect forever since that redirection in itself is permanent. But it\u2019s worth remembering that <strong>it takes a while for Google (and other search engines) to recognize a website has been moved<\/strong>. Mr Muller\u2019s advice is to <strong>keep the redirect around for at least a year or possibly even a bit longer<\/strong>, depending on your circumstances. In case you remove the 301 redirect sooner than that, Google may continue to show the old URL, especially if external links to it exist on the web.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"set-up-301-redirects-with-htaccess\"><\/a>How to Set Up 301 Redirects in WordPress With .htaccess<\/h2>\n<p>[\/vc_column_text][vc_column_text]<strong>The .htaccess file is a configuration file, and one of the core files of a WordPress website<\/strong>. Needless to say, any changes you make to the file should be done with the utmost caution.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>The .htaccess file tells servers how to handle certain things on your website<\/strong>. A website can have several .htaccess files, but the main one that we\u2019re interested in <strong>is located in the root or a central directory of your WordPress website<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To <a href=\"https:\/\/qodeinteractive.com\/magazine\/find-htaccess-file-on-wordpress-site\/\">find a .htaccess file on your site<\/a> and access it, you need to login to your server using an FTP client. If you\u2019re not sure how to do this, check out our <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-use-ftp\/\">FTP beginners guide<\/a>. A dot next to the name of the file indicates that the file is hidden. Please note that this file is hidden by default. To find it, edit the settings in your FTP client so that it displays hidden files.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Now that you can see the main .htaccess file, <strong>before you make any edits, make sure to back up its content<\/strong>. To do it, right-click on the file and select <em><strong>Download<\/strong><\/em> (depending on your FTP client, you may see a different option, e.g. <em>Add to download list<\/em>, etc.). You can also copy the file and paste it on your computer.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To start making changes to the file, once again, right-click on it and select <em><strong>Edit<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code-Edit.jpg\" class=\"attachment-full size-full\" alt=\"HTTP Status Code Edit\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code-Edit.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code-Edit-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/HTTP-Status-Code-Edit-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;82px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Redirect a Page or a Post to Another Page or a Post<\/h3>\n<p>[\/vc_column_text][vc_column_text]First, let\u2019s see <strong>how to create a 301 redirect of the post or a page on the same domain<\/strong>. In such cases, this is the code you need to add to your .htaccess file:[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Redirect 301 old-url new-url<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Add the old URL first, and then the new one. You can make as many redirects as you like, simply copy this code and add relevant URLs.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Redirect Your Website from an Old to a New Domain<\/h3>\n<p>[\/vc_column_text][vc_column_text]When you want to <strong>move your website to a new domain<\/strong> and create a 301 redirect for that, you need to edit the .htaccess file of the old domain using the following code:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">RewriteEngine On\r\nRewriteCond %{HTTP_HOST} ^olddomain\\.com$ [OR]\r\nRewriteCond %{HTTP_HOST} ^www\\.olddomain\\.com$\r\nRewriteRule (.*)$ https:\/\/www.newdomain.com\/$1 [R=301,L]<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;18px&#8221;][vc_column_text]Just make sure to change the URLs to match your old and new domains. [\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Redirect from HTTP to HTTPS<\/h3>\n<p>[\/vc_column_text][vc_column_text]To keep your website secure and to protect your users, you should run it under HTTPS and add a valid SSL certificate to it. If you want to <strong>migrate a website from HTTP to HTTPS<\/strong>, you also have to redirect the traffic from the former to the latter. The best way to do it is by using a 301 redirect, <a href=\"https:\/\/www.youtube.com\/watch?v=7y51mFBNPBE&amp;t=23m45s\" target=\"_blank\" rel=\"noopener noreferrer\">as advised in this video<\/a>, again, by Google\u2019s John Mueller. To create a 301 redirect, add the following code to the main .htaccess file:[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">RewriteEngine On\r\nRewriteCond %{SERVER_PORT} 80\r\nRewriteRule ^(.*)$ https:\/\/www.yourdomain.com\/$1 [R,L]<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;18px&#8221;][vc_column_text]Again, just change the URL to match your own.[\/vc_column_text][vc_empty_space height=&#8221;81px&#8221;][vc_empty_space height=&#8221;68px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;28px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;50px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"using-plugins\"><\/a>How to Create 301 Redirects Using Plugins<\/h2>\n<p>[\/vc_column_text][vc_column_text]If you\u2019re not comfortable with altering the main .htaccess file, you can create 301 redirects by using a WordPress redirection plugin. We bring you 5 plugins we believe work best.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">1. Redirection<\/h3>\n<p>[\/vc_column_text][vc_column_text]<a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"noopener noreferrer\">Redirection<\/a> WordPress plugin is surely the most popular on the list, with over 1 million active installations. It\u2019s been around for more than 10 years, and it\u2019s a great choice for creating 301 redirections. This plugin lets you track <a href=\"https:\/\/qodeinteractive.com\/magazine\/best-404-redirect-plugins-wordpress\/\">404 errors<\/a> on your website, and among many useful options, it also includes the configurable logging option. Configurable logging allows you to keep an eye on redirects that are happening on your website, as well as to get the info about your visitors, such as their location, the browser they used, etc.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Once the installation process is complete, activate the plugin. Next, go to <em><strong>Tools &gt; Redirection<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin.jpg\" class=\"attachment-full size-full\" alt=\"Redirection Plugin\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Here, you can enter the source and the target URL, and create redirections as per your requirements.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin-Settings.jpg\" class=\"attachment-full size-full\" alt=\"Redirection Plugin Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin-Settings.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin-Settings-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Redirection-Plugin-Settings-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;82px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">2. Simple 301 Redirects<\/h3>\n<p>[\/vc_column_text][vc_column_text]The <a href=\"https:\/\/wordpress.org\/plugins\/simple-301-redirects\/\" target=\"_blank\" rel=\"noopener noreferrer\">Simple 301 Redirects<\/a> plugin has over 300,000 active installations and is incredibly easy to use.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To create a redirect (once you\u2019ve installed and activated the plugin), go to <em><strong>Settings &gt; 301 Redirects<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin.jpg\" class=\"attachment-full size-full\" alt=\"Simple 301 Redirect Plugin\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]There are two boxes &#8211; one for the old URL, and another one for the new URL.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin-Settings.jpg\" class=\"attachment-full size-full\" alt=\"Simple 301 Redirect Plugin Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin-Settings.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin-Settings-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Simple-301-Redirect-Plugin-Settings-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you wish, you can also use <a href=\"https:\/\/www.seoptimer.com\/blog\/wildcard-redirect\/\" target=\"_blank\" rel=\"noopener noreferrer\">Wildcards redirects<\/a>. To activate them, simply tick the box below the URLs and click on <em><strong>Save Changes<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;82px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">2. Rank Math<\/h3>\n<p>[\/vc_column_text][vc_column_text]<a href=\"https:\/\/wordpress.org\/plugins\/seo-by-rank-math\/\" target=\"_blank\" rel=\"noopener noreferrer\">Rank Math<\/a> is a great SEO plugin that can also be used to effortlessly create redirects.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]For starters, head over to <strong>Rank Math &gt; Redirections<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Rank-Math-Redirection.png\" class=\"attachment-full size-full\" alt=\"Rank Math Redirection\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Rank-Math-Redirection.png 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Rank-Math-Redirection-300x160.png 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Rank-Math-Redirection-620x331.png 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you can\u2019t see the option in the submenu, go to <strong>Rank Math &gt; Dashboard<\/strong> and enable the <strong>Redirections<\/strong> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Turn-on-Rank-Math-reddirection.jpg\" class=\"attachment-full size-full\" alt=\"Turn on Rank Math reddirection\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Turn-on-Rank-Math-reddirection.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Turn-on-Rank-Math-reddirection-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Turn-on-Rank-Math-reddirection-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Then, select <strong>Add New<\/strong> and set up the new redirection.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/New-redirection-301.jpg\" class=\"attachment-full size-full\" alt=\"New redirection 301\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/New-redirection-301.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/New-redirection-301-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/New-redirection-301-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]This plugin is a great choice for creating redirects the easy way, but you can also <a href=\"https:\/\/qodeinteractive.com\/magazine\/is-rank-math-best-free-wordpress-seo-plugin\/\">use Rank Math as your SEO plugin<\/a>.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">4. Quick Page\/Post Redirect Plugin<\/h3>\n<p>[\/vc_column_text][vc_column_text]As its name suggests, the <a href=\"https:\/\/wordpress.org\/plugins\/quick-pagepost-redirect-plugin\/\" target=\"_blank\" rel=\"noopener noreferrer\">Quick Page\/Post Redirect Plugin<\/a> lets its users create redirects fast. At the moment, there are more than 200,000 active installations of this plugin.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]When you install and activate it, the plugin will appear in your admin menu. Hover over it to see the options it includes.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Page-Post-Redirect-Plugin.jpg\" class=\"attachment-full size-full\" alt=\"Quick Page Post Redirect Plugin\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Page-Post-Redirect-Plugin.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Page-Post-Redirect-Plugin-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Page-Post-Redirect-Plugin-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To add new redirects, click on <em><strong>Quick Redirects<\/strong><\/em>. Then paste the old and the new URLs. When you\u2019re done, click on <em><strong>Add New Redirects<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Redirects-Add-New.jpg\" class=\"attachment-full size-full\" alt=\"Quick Redirects Add New\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Redirects-Add-New.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Redirects-Add-New-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Quick-Redirects-Add-New-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;82px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">5. Safe Redirect Manager<\/h3>\n<p>[\/vc_column_text][vc_column_text]With more than 50k active installations, the <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/safe-redirect-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\">Safe Redirect Manager<\/a> is the final redirect plugin we\u2019ll feature on our list.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Upon installing and activating the plugin, go to <em><strong>Tools &gt; Safe Redirect Manager<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Plugin.jpg\" class=\"attachment-full size-full\" alt=\"Safe Redirect Manager Plugin\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Plugin.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Plugin-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Plugin-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Click on it and then on <em><strong>Create Redirect Rule<\/strong><\/em> at the top of the page.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings.jpg\" class=\"attachment-full size-full\" alt=\"Safe Redirect Manager Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After that, enter appropriate URLs in the <em><strong>Redirect From<\/strong><\/em> and <em><strong>Redirect To<\/strong><\/em> fields.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-2.jpg\" class=\"attachment-full size-full\" alt=\"Safe Redirect Manager Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-2.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-2-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-2-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Under <em><strong>Redirect Settings &gt; HTTP Status Code<\/strong><\/em> select <em><strong>301 Moved permanently<\/strong><\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-3.jpg\" class=\"attachment-full size-full\" alt=\"Safe Redirect Manager Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-3.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-3-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Safe-Redirect-Manager-Settings-3-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]When you\u2019re done, press <em><strong>Publish<\/strong><\/em> for changes to take effect.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">To Sum Things Up<\/h2>\n<p>[\/vc_column_text][vc_column_text]301 redirects are incredibly useful and can positively impact the browsing experience of your users. People won\u2019t be too happy if they can\u2019t find the web page they\u2019re looking for, which is why it\u2019s in your best interest to redirect them to a valid URL. Setting up 301 redirects is also a great way of ensuring that link equity is transferred from an old to a new page. That\u2019s why we wanted to show you how to create 301 redirect pages in WordPress, so you can get your users to the right place. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Don\u2019t go overboard with redirects, though. <strong>Your top-level domain shouldn\u2019t have more than one 3xx page<\/strong>. Use them only when necessary, since they <strong>may increase the page load time<\/strong>, as well as negatively impact your user experience.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Get your users to the right place with 301 redirects. Learn how to create 301 redirects in WordPress via plugin and by editing a .htaccess file of your site.<\/p>\n","protected":false},"author":4,"featured_media":6727,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[47,4,13],"class_list":["post-4512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-plugin","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/4512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=4512"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/4512\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/6727"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=4512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=4512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=4512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}