{"id":29676,"date":"2021-03-15T11:22:39","date_gmt":"2021-03-15T05:37:39","guid":{"rendered":"https:\/\/rarathemes.com\/blog\/?p=29676"},"modified":"2024-08-21T11:09:45","modified_gmt":"2024-08-21T05:24:45","slug":"redirect-url-wordpress","status":"publish","type":"post","link":"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/","title":{"rendered":"How to Redirect a URL in WordPress?"},"content":{"rendered":"\n<p>When you want to change an existing website\u2019s structure, you might want to consider fixing <a href=\"https:\/\/rarathemes.com\/blog\/find-fix-broken-links-wordpress\/\" class=\"rank-math-link\">broken links<\/a> or moving to another domain entirely.<\/p>\n\n\n\n<p>If that\u2019s the case, a URL redirection is the best option you will have.<\/p>\n\n\n\n<p>Not only does it redirect users from an old broken link to a fresh new one, but it also ensures that the SEO of a website remains unaffected too.<\/p>\n\n\n\n<p>Stay with us till the end as we take a more in-depth look into redirecting a URL, along with its types, scope, and a how-to-use to guide.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#What_is_URL_Redirecting\" >What is URL Redirecting?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Types_of_Redirects\" >Types of Redirects<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#301\" >301:&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#302\" >302:&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#303\" >303:&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#307\" >307:&nbsp;<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Why_Redirection_is_Important\" >Why Redirection is Important?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Technical_Errors\" >Technical Errors<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Updating_Websites\" >Updating Websites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Directory_Structure_Changes\" >Directory Structure Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#SEO_Optimization\" >SEO Optimization<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#How_to_Redirect_a_URL_in_WordPress\" >How to Redirect a URL in WordPress?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#1_Using_Plugin\" >1. Using Plugin<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#301_Redirects_%E2%80%93_Easy_Redirect_Manager\" >301 Redirects &#8211; Easy Redirect Manager<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Features\" >Features:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#How_to_Install\" >How to Install<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Redirection\" >Redirection<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Features-2\" >Features:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#How_to_install\" >How to install<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Simple_301_Redirects\" >Simple 301 Redirects<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Features-3\" >Features:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#How_to_install-2\" >How to install<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#2_Manually\" >2. Manually<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Using_htaccess_file\" >Using .htaccess file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Using_functionsphp_file\" >Using functions.php file<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/rarathemes.com\/blog\/redirect-url-wordpress\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_URL_Redirecting\"><\/span>What is URL Redirecting?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Redirecting refers to the process of mapping one object to a different one. In URL redirection, a user is transferred from Page A to Page B while using the URL of Page A. This process of remapping a web page address to a new address is called URL redirecting.<\/p>\n\n\n\n<p>It is also called URL forwarding and is a technique for making web pages available under more than one URL address. The information available on one URL address is moved to a new page in this process. This process helps users, as well as search engine web crawlers, locate the information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Types_of_Redirects\"><\/span>Types of Redirects<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are 5 different commonly used types of URL redirection:&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"301\"><\/span><strong>301:&nbsp;<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The 301 redirect, used when a page is moved to a new address permanently, keeps your search engine rankings intact, and is the best redirecting technique.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"302\"><\/span><strong>302:&nbsp;<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>302 redirect is a temporary redirection technique. It serves as an alternate when the requested page is temporarily unavailable.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"303\"><\/span><strong>303:<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This redirect was created to replace the 302 redirects. It prevents screen refreshing and bookmarking of sensitive data such as passwords.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"307\"><\/span><strong>307:<\/strong>&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The 307 redirect is very similar to the 303 redirect. The only difference is that 307 redirect uses the same technique to send as well as receive information. Whereas 303 uses two different methods.<\/p>\n\n\n\n<p>In this article, redirecting refers to 301 redirects as it is the most common redirecting technique used in WordPress.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Redirection_is_Important\"><\/span>Why Redirection is Important?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>URL redirecting is a technique mainly used to fix technical errors or inform search engines that the page has moved. Given below are the few cases when redirects are useful.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Technical_Errors\"><\/span>Technical Errors<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Redirects can help you guide new users to your website without any confusion. In some cases, when a user requests a website, they might not find it there. Chances are there might be a typo in your URL or simply because the page is moved to a new URL address.&nbsp;<\/p>\n\n\n\n<p>Most of the time, you\u2019ll see a 404 error page whenever such cases occur. You also have the option to redirect your users back to your original page. Redirects can help you regain your visitors that you may lose.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Updating_Websites\"><\/span>Updating Websites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>As your business grows, your strategies, policies, and plans change. Your domain name might also change, especially when smaller companies tie-up with more prominent companies.&nbsp;<\/p>\n\n\n\n<p>No one wants to lose their hard-earned reputation while they are growing in their business. Thus, redirects can help you keep your legacy intact by keeping your clients with you and directing them to the new page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Directory_Structure_Changes\"><\/span>Directory Structure Changes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>At times when you want to rearrange the structure of your website, you can use redirects. This changing or rearranging of website structure can either be for general reorganization or even for security reasons. Sometimes website owners also arrange the structure to optimize the site. Using redirects during such times ensures that your visitors land on the right page. Hence, redirects can save you from the potential loss of clients.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"SEO_Optimization\"><\/span>SEO Optimization<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>While rebranding your website, URL redirection also helps in <a href=\"https:\/\/rarathemes.com\/blog\/best-seo-optimized-wordpress-themes\/\">SEO optimization<\/a>. It gives you total control over the website\u2019s URLs. Small tweaks like redirecting all HTTP input to HTTPS can boost SEO performance. Besides, redirects can help users get to the same URL from different pages.&nbsp;<\/p>\n\n\n\n<p>After redirection, search engine crawlers can find the information even when they\u2019re moved to a new location. Thus, URL redirection ensures that your data doesn\u2019t lose its value and worth.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Redirect_a_URL_in_WordPress\"><\/span>How to Redirect a URL in WordPress?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are multiple ways of redirecting a URL in WordPress. We\u2019ll discuss two primary ways&#8211;redirection using plugins and manual redirection.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Using_Plugin\"><\/span>1. Using Plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For general users who find coding tedious, you can use one of the many plugins available for redirecting a URL in WordPress. Plugins maintain standard security of your site and employ redirects. Among many different plugins, here are the three best plugins based on user reviews and features:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"301_Redirects_%E2%80%93_Easy_Redirect_Manager\"><\/span>301 Redirects &#8211; Easy Redirect Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>301 Redirects is an easy to use and user-friendly plugin that lets you create and manage redirects for your WordPress site. You can create 301, 302, and 307 redirects with ease, whether for new or existing websites.&nbsp;<\/p>\n\n\n\n<p>This plugin lets you reroute incoming traffic of a requested URL to a different destination URL. It is SEO optimized and helps search engine bots to find the right information at the right URL.&nbsp;<\/p>\n\n\n\n<p>You can use the 301 Redirect plugin when you need to move to a new website or organize your existing WordPress content. You can also use it on particular time-bound occasions like a sale for eCommerce, events, etc. z<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Features\"><\/span>Features:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fast redirection<\/li>\n\n\n\n<li>Import Export feature<\/li>\n\n\n\n<li>Bulk redirects<\/li>\n\n\n\n<li>Redirect stats to help you know the scale of the redirection<\/li>\n\n\n\n<li>Custom destination URL<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Install\"><\/span>How to Install<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download <em>redirection.zip<\/em> file<\/li>\n\n\n\n<li>Unzip\/extract. Make sure you unzip the redirection directory to your \/wp-content\/plugins directory.<\/li>\n\n\n\n<li>Go to Plugin Management<\/li>\n\n\n\n<li>Enable the plugin<\/li>\n\n\n\n<li>Visit Tools\/redirection and configure the options.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"347\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/301-Redirects-Easy-Redirect-Manager.png\" alt=\"301 Redirects - Easy Redirect Manager\" class=\"wp-image-29678\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/301-Redirects-Easy-Redirect-Manager.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/301-Redirects-Easy-Redirect-Manager-300x143.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/301-Redirects-Easy-Redirect-Manager-126x60.png 126w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-vivid-cyan-blue-background-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/eps-301-redirects\/\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">Download<\/a><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Redirection\"><\/span>Redirection<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Redirection is one of the oldest and most trusted plugins. It is ideal for 301 redirects, 404 error handling, and <a href=\"https:\/\/rarathemes.com\/blog\/find-fix-broken-links-wordpress\/\">fixing broken links<\/a>. No matter how small or big your website is, the Redirection plugin can work great for all.&nbsp;<\/p>\n\n\n\n<p>Redirection has been in the business for more than a decade now. It has built an outstanding reputation among its users and is recommended by many. Moreover, Redirection is compatible with PHP 5.6 and onwards. It also helps improve your site\u2019s SEO ranking.&nbsp;<\/p>\n\n\n\n<p>One of the Redirection&#8217;s unique features is that it can create redirects automatically when a post or page permalink is changed.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Features-2\"><\/span>Features:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Easy to use<\/li>\n\n\n\n<li>Options for conditional redirects<\/li>\n\n\n\n<li>A complete log of redirects.<\/li>\n\n\n\n<li>HTTP headers for better security of websites.<\/li>\n\n\n\n<li>Track 404 errors<\/li>\n\n\n\n<li>Query parameter handling<\/li>\n\n\n\n<li>APACHE and NGINX support<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_install\"><\/span>How to install<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download 301 redirects and unzip the zip file.&nbsp;<\/li>\n\n\n\n<li>Upload eps-301-redirects directory to \/ wp-content \/ plugins \/ directory<\/li>\n\n\n\n<li>Go to the \u201cPlugins\u201d menu and activate the plugin.<\/li>\n\n\n\n<li>Go to Settings&gt;301 Redirects and add as many redirects as you need.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"411\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirection-demo-in-redirection-plugin.png\" alt=\"Redirection demo in redirection plugin\" class=\"wp-image-29679\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirection-demo-in-redirection-plugin.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirection-demo-in-redirection-plugin-300x169.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirection-demo-in-redirection-plugin-107x60.png 107w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"276\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Setting-redirection.png\" alt=\"redirection Setting \" class=\"wp-image-29680\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Setting-redirection.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Setting-redirection-300x113.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Setting-redirection-159x60.png 159w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"211\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirect-Logs.png\" alt=\"Redirect Logs\" class=\"wp-image-29681\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirect-Logs.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirect-Logs-300x87.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Redirect-Logs-208x60.png 208w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"408\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Import_Export-redirection-plugin-setup.png\" alt=\"Import_Export redirection plugin setup\" class=\"wp-image-29682\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Import_Export-redirection-plugin-setup.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Import_Export-redirection-plugin-setup-300x168.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Import_Export-redirection-plugin-setup-107x60.png 107w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"483\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Options-redirection-Plugin.png\" alt=\"Options redirection Plugin\" class=\"wp-image-29683\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Options-redirection-Plugin.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Options-redirection-Plugin-300x198.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Options-redirection-Plugin-91x60.png 91w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"548\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Support-in-redirection-plugin.png\" alt=\"Support in redirection plugin\" class=\"wp-image-29684\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Support-in-redirection-plugin.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Support-in-redirection-plugin-300x225.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Support-in-redirection-plugin-80x60.png 80w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-vivid-cyan-blue-background-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">Download<\/a><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Simple_301_Redirects\"><\/span>Simple 301 Redirects<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Simple 301 Redirects is a plugin that lets you seamlessly pass incoming links and their page rank from old pages to new pages. It preserves your URL structure and redirects you to some other page or website with ease.<\/p>\n\n\n\n<p>As the name suggests, it is simple and easy to use. However, depending on your hosting provider, redirection might be a bit slower. If you do not want to make your website slow, you can also choose to redirect manually.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Features-3\"><\/span>Features:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Simple and easy to use<\/li>\n\n\n\n<li>Seamless redirection<\/li>\n\n\n\n<li>Free&nbsp;<\/li>\n\n\n\n<li>Preserves URL structure&nbsp;<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_install-2\"><\/span>How to install<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download Simple 301 redirects, unzip and upload to \/wp-content\/plugins\/directory<\/li>\n\n\n\n<li>Go to the \u201cPlugins\u201d menu in WordPress and activate plugins.<\/li>\n\n\n\n<li>Go to <em>Settings &gt; 301 Redirects page and add redirects<\/em>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"242\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Simple-Redirect.png\" alt=\"Simple Redirect\" class=\"wp-image-29685\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Simple-Redirect.png 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Simple-Redirect-300x99.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Simple-Redirect-181x60.png 181w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-vivid-cyan-blue-background-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/simple-301-redirects\/\" target=\"_blank\" rel=\"nofollow noreferrer noopener\">Download<\/a><\/div>\n<\/div>\n\n\n\n<p>We have also created a list of <a href=\"https:\/\/rarathemes.com\/blog\/best-wordpress-redirect-plugins\/\">Best WordPress Redirect Plugins<\/a>. So, please do have a look at it too if needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Manually\"><\/span>2. Manually<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you are a WordPress professional or coding expert, you can manually redirect a URL. Manual redirection is the most efficient, easy, and sustainable technique of redirecting URLs. However, you\u2019ll need to have basic coding skills to understand the steps.<\/p>\n\n\n\n<p>There are two ways in which you can redirect your WordPress page manually. One involves editing the <em>.htaccess<\/em> file while others involve editing the <em>functions.php<\/em> file.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s dig in and find out more:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_htaccess_file\"><\/span>Using <em>.htaccess<\/em> file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>It is the easiest and quickest way to redirect for those who find it comfortable working with the <em>.htaccess<\/em> file. The <em>.htaccess<\/em> file manages all the permalinks of your site. So, whether you want to redirect just a single URL or an entire website, you can do it using the <em>.htaccess<\/em> file.<\/p>\n\n\n\n<p>To start with, find the URL you want to redirect. Then, decide on the new URL endpoint and note down the mapping for later use. Always remember to back up your WordPress site before making any changes.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to your website\u2019s file directory. You can access the file directory using a control panel, FTP, or an FTP client like FileZilla.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open <strong><em>.htaccess<\/em><\/strong> file in a text editor. If you want to try out a single redirect, add the following lines of code:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Redirect 301 \/old-page.html\nhttp:&#47;&#47;www.mydomain.com\/new-page.html<\/code><\/pre>\n\n\n\n<p>Change the old-page.html to match the old URL, and in new-page.html, modify the URL to match the destination URL.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add the following lines of code:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On\nRewriteCond %{HTTPS} off\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI}\n&#91;L,R=301]<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"424\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-Rule-htaccess.jpg\" alt=\"Rewrite Rule htaccess\" class=\"wp-image-29733\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-Rule-htaccess.jpg 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-Rule-htaccess-300x174.jpg 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-Rule-htaccess-103x60.jpg 103w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>These lines of code ensure security by redirecting users to a more secure \u201dHTTPS\u201d URL.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you want to redirect your entire website to a different URL, add the following lines to your code:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#Options +FollowSymLinks\nRewriteEngine on\nRewriteRule ^(&gt;*)$ http:\/\/www.mynewdomain.com\/$1\n&#91;R=301,L]<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"417\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-htaccess.jpg\" alt=\"Rewrite htaccess\" class=\"wp-image-29734\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-htaccess.jpg 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-htaccess-300x171.jpg 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/02\/Rewrite-htaccess-105x60.jpg 105w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Save the changes you\u2019ve just made in<em> .htaccess<\/em> file. If you\u2019re locally working on your .htaccess file, do not forget to upload it to your site\u2019s server.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_functionsphp_file\"><\/span>Using <em>functions.php<\/em> file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>As mentioned above, you can also redirect using the functions.php file in a <a href=\"https:\/\/rarathemes.com\/blog\/wordpress-child-theme\/\">child theme<\/a>. Every theme comes with a <em>functions.php<\/em> file. Every child theme has its <em>functions.php<\/em> file too. While the<em> functions.php<\/em> file in your theme may change when you update your theme, the child theme&#8217;s <em>functions.php<\/em> file remains unchanged, which is why it is ideal for customization.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Locate the <strong><em>functions.php<\/em><\/strong> file in your child theme using an FTP client, FTP, or a control panel.&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Suppose you plan to redirect your entire site to a single new location, open<strong><em> functions.php<\/em><\/strong> with a text editor. Add WordPress&#8217; very own wp_redirect function by adding the following lines to the end of the code.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>wp_redirect( \u201chttp:\/\/www.my-blog.com\/a-new-destination\u201d, 301 );\nexit;<\/code><\/pre>\n\n\n\n<p>Do not forget to change the example URL given above to your destination URL.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The wp_redirect function can be used to redirect a single URL. You can also use the wp_redirect function to redirect specific slugs to a new URL.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You should consider redirecting URLs, whether you\u2019re planning to move your website, change the website structure, fix some broken links, or improve the site\u2019s SEO. Finding the perfect method among the above listed depends on the skill level and the condition. Choose the one that serves your purpose well.<\/p>\n\n\n\n<p>We hope you find all your answers you were looking for regarding URL redirection in a WordPress site. Try out the methods listed above and let us know about your experience in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you want to change an existing website\u2019s structure, you might want to consider fixing broken links or moving to another domain entirely. If that\u2019s the case, a URL redirection &hellip; <\/p>\n","protected":false},"author":15,"featured_media":29699,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_be_single_description":"","_be_image_uploader":0,"_be_meta_button_label":"","_be_meta_button_url":"","_be_meta_button_newtab":false,"_be_meta_rel_attribute":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-29676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","latest_post"],"_links":{"self":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/29676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/comments?post=29676"}],"version-history":[{"count":0,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/29676\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media\/29699"}],"wp:attachment":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media?parent=29676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/categories?post=29676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/tags?post=29676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}