Links can be broken for a number of reasons. A 404 page error can be the result of:\r\n<ul>\r\n \t<li>A typo that leads to the wrong page<\/li>\r\n \t<li>A page that doesn't currently exist<\/li>\r\n \t<li>A page that was removed or transferred to another link<\/li>\r\n<\/ul>\r\nThough smart marketers and webmasters create fun and <a href="https:\/\/www.searchenginejournal.com\/404-page-examples\/211154\/"><u>high-converting 404 pages<\/u><\/a>, a "page not found" error is truly not the ideal spot for a visitor to land. Besides bad user experience, broken links can have negative implications from an SEO perspective.\r\n\r\n<img class="aligncenter size-large wp-image-10401" src="https:\/\/pagely.com\/wp-content\/uploads\/2017\/09\/1.-Pixar-Animation-Studios-Google-Chrome-1140x771.png" alt="" width="1140" height="771" \/>\r\n\r\nWhen a search engine crawls your website and has trouble finding pages that are supposed to be there, it makes note of these negative results, and your search engine standing is affected. As a rule, broken links should be avoided whenever possible, with a compelling 404 page ready to go as a backup for a worst-case scenario.\r\n\r\nOne major tactic for avoiding the possibility of a broken link is by creating redirects for pages with URLs that have changed over time, and potentially also for common misspellings of your company's most important landing pages. Here's all you need to know about redirects, and how to implement them in WordPress.\r\n\r\nAs website owners, we all go through that phase where we're kind of coasting...gradually moving along, allowing things to happen on their own, the way they will.\r\n\r\nAnd that's okay when there's not much to worry about or supervise. Let the authors and editors work out formatting, let the social media guy test <a href="https:\/\/pagely.com\/blog\/social-media-plugins-wordpress\/" target="_blank" rel="noopener noreferrer">Facebook plugins<\/a>, and so on.\r\n\r\nHowever, when you're moving your WordPress site to a new domain, it's a whole different ballgame. You have web pages to move around and URLs of old blog posts to restructure. That's where your knowledge of the CMS comes into play because you have to perform a WordPress redirect.\r\n<h2>What Is a WordPress Redirect & How Does It Impact SEO?<\/h2>\r\nIn simple terms, a WordPress redirect enables you to transfer visitors from a URL they initially requested to an alternative one. Site owners usually set up redirects because of the following reasons:\r\n<ul>\r\n \t<li><strong>Some webpages are no longer active<\/strong> -- Visitors who've bookmarked your web page for future reading can end up frustrated if it doesn't open or displays an error. Redirecting it to your preferred URL is an ideal way to keep your best readers satisfied.<\/li>\r\n \t<li><strong>A webpage needs immediate repairs\/updates<\/strong> -- Perhaps there's a landing page on your website <a href="https:\/\/pagely.com\/blog\/optimize-wordpress-images\/" target="_blank" rel="noopener noreferrer">with broken imagery<\/a>. If visitors continue seeing that page as it is, it could take a toll on your user experience. Luckily, WordPress redirect lets you send visitors to a different landing page -- the one that's updated -- while you fix issues in the previous one.<\/li>\r\n \t<li><strong>SEO rankings are crucial to maintain <\/strong>-- If you're moving the webpages of your current website to a new domain, redirecting helps ensure search engine spiders can index your new site's URLs automatically and, at the same time, drop the previous ones from its index. If you have a good backlink profile, be sure that your link juice will be passed to your new domain.<\/li>\r\n<\/ul>\r\nIn the scenario that no redirect is performed, your website visitors will see an error message while navigating your domain. It's likely that they will leave, and possibly never return. Likewise, search engines will have no context of which web page to return for a search query. Hence, redirecting web pages is an essential part of maintaining SEO footprint and delivering the best user experience possible.\r\n<h3>Different Types of Redirects<\/h3>\r\nThere are a number of different types of redirects. Here's what each one refers to, According to <a href="https:\/\/www.searchenginepeople.com\/blog\/redirects.html">Search Engine People<\/a>:\r\n<ul>\r\n \t<li><strong>301 redirect: <\/strong>301 redirects stand for permanent redirects that inform search engines that the location of the page they intend to send visitors has been altered. It passes almost 90 percent of ranking power (link juice) to the redirected web page.<\/li>\r\n \t<li><strong>302 redirect: <\/strong>302 redirects are temporary redirects that inform search engines that a location of the page they intend to send visitors to is changed for the moment, but not forever.<\/li>\r\n \t<li><strong>303 redirect: <\/strong>A few webpages store one-time-only information (like landing pages that act as payment forms). You may want to prevent these pages from being refreshed or saved. By setting up 303 redirects, you can instruct the server to tell visitors that if they submitted the form, they should visit this URL and change the method of how they did that. It's a temporary redirect that ensures the page storing data can't be refreshed or bookmarked.<\/li>\r\n \t<li><strong>307 redirect:<\/strong> Very similar to the above.<\/li>\r\n \t<li><strong>308 redirect:<\/strong> A 307 with permanent status.<\/li>\r\n<\/ul>\r\nWhen it comes to WordPress, you'd be mostly dealing with 301 redirects. With the right set up, 301 WordPress redirect can improve user experience, address outdated content issues and clean up untidy site architecture -- all while preserving your SEO ranking and link diversity. The remainder of this article will focus specifically on this type of redirect.\r\n\r\n<img class="aligncenter size-large wp-image-10402" src="https:\/\/pagely.com\/wp-content\/uploads\/2017\/09\/img_GoMage_301_302_redirects-1140x761.png" alt="" width="1140" height="761" \/>\r\n<h2>When to Use a 301 Redirect<\/h2>\r\nThe 301 redirect gets its name from the HTTP response status code 301, which informs search engines that a page has been <strong>permanently <\/strong>moved to a new URL. From an SEO perspective, it guarantees that you'll still keep any built up PageRank, associated traffic, and other related search engine information, even after the link URL changes.\r\n\r\nYou'll want to create a redirect when:\r\n<ul>\r\n \t<li>Planning to delete a post or page. You can use a redirect to point the visitor to another (related) location or to a new post.<\/li>\r\n \t<li>Changing the permalinks of a post or page.<\/li>\r\n<\/ul>\r\nThe following represent different ways to create a WordPress redirect.\r\n<h2>Using .htaccess<\/h2>\r\nOne of the fastest working types of WordPress redirect is through a web server configuration file .<strong>htaccess<\/strong>. As far as WordPress redirects are concerned, this method is one of the more technical and complicated, and should, therefore, be handled with a lot of care.\r\n\r\nFor the inexperienced backend WordPress developer, messing with the .htaccess file and causing even one small mistake with your code could cause your website to be totally inaccessible. If you think you know what you're doing, it's still a good practice to create a backup of the file, or a <a href="https:\/\/pagely.com\/blog\/2017\/05\/wordpress-staging-site-create\/">WordPress staging site<\/a> before attempting to make any changes.\r\n<h3>Creating a 301 Redirect using the WordPress .htaccess file:<\/h3>\r\n<ul>\r\n \t<li>Connect to your WordPress installation using an FTP client.<\/li>\r\n \t<li>Locate the .htaccess file, at the root directory of your WordPress site. Note that if you can't locate the file, it's hidden and you'll need to force the FTP to show your hidden files.<\/li>\r\n \t<li>To edit the .htaccess file, use Notepad or any plain text editor.<\/li>\r\n \t<li>Specify the old location and the new location of a URL.<\/li>\r\n<\/ul>\r\nSample redirect code:\r\n\r\n<em>Redirect 301 \/old-page-here.html http:\/\/www.yournewwebsite.com\/new-page-here.html<\/em>\r\n<ul>\r\n \t<li>If you need to redirect the whole website, use this sample code:<\/li>\r\n<\/ul>\r\n<em>Redirect 301 \/ http:\/\/www.yournewwebsitehere.com<\/em>\r\n\r\nAs a best practice, add the code at the end of the .htaccess file. You can check that the WordPress redirect is working by saving the file and reloading the page you are trying to redirect.\r\n<h2>Using WordPress Redirect Plugins<\/h2>\r\nA much simpler way of creating redirects is by using WordPress redirect plugins. These WordPress plugins make it easy to create redirects without needing to use an FTP to access the backend, and in most cases, no coding knowledge is necessary to be successful.\r\n<h3><a href="https:\/\/wordpress.org\/plugins\/redirection\/" target="_blank" rel="noopener noreferrer">Redirection<\/a><\/h3>\r\nWith over 800,000 active users on WordPress, this plugin has been reviewed by users as the simplest way to add and manage redirects in WordPress. To use it, just install and activate the plugin, then go to <strong>Tools, <\/strong>then <strong>Redirection, <\/strong>and start setting up your redirects. As an added bonus, you can also use this WordPress redirects plugin to check your website for 404 page errors that need fixing.\r\n<h3><a href="https:\/\/wordpress.org\/plugins\/quick-pagepost-redirect-plugin\/" target="_blank" rel="noopener noreferrer">Quick Page\/Post Redirect Plugin<\/a><\/h3>\r\nThis particular WordPress redirects plugin has over 200,000 active users on WordPress. Besides 301 redirects, It also allows you to perform 302 and 307 (meta refresh) redirects.\r\n\r\nThe plugin has two redirect functionalities -- "Quick Redirects" and "Individual Redirects". Quick Redirects are quick and simple to add. When using this feature, there's no need to have an existing page or post set up in order to add one. All you have to do is enter in the Request URL and the Destination URL, then the plugin will redirect it.\r\n\r\nIndividual Redirects are for pages\/posts that already exist. The plugin adds an option meta box to the edit screen where you can specify the redirect location and type.\r\n<h3><a href="https:\/\/wordpress.org\/plugins\/simple-301-redirects\/" target="_blank" rel="noopener noreferrer">Simple 301 Redirects<\/a><\/h3>\r\nTo begin, install and activate the plugin. Once that's done, go to Settings > 301 Redirects to start the process.\r\n\r\nNow let's assume you want to redirect:\r\n\r\n<em>Yourwebsite.com\/old-url<\/em>\r\n\r\nTo\r\n\r\n<em>Yourwebsite.com\/new-url<\/em>\r\n\r\nAll you have to do is grab the part of the URL that comes after .com (or whichever name extension your website ends with) and paste it into the plugin's fields like this:\r\n\r\n<strong>Request:<\/strong> \/old-URL\r\n\r\n<strong>Destination:<\/strong> \/new-URL\r\n\r\n<img class="aligncenter wp-image-13253" src="https:\/\/pagely.com\/wp-content\/uploads\/2018\/03\/page2.png" alt="wordpress redirect plugin" width="600" height="245" \/>\r\n\r\nWhile you can copy and paste the entire URL, using the part relative to the root is a more straightforward way to execute a WordPress redirect.\r\n\r\nThere's also an advanced feature named "Wildcards" that you can use to redirect a whole category of web pages to a newly created page category\r\n\r\nLet's say you have several posts (5-10 for instance) in the SEO category:\r\n\r\n<em>Yourwebsite.com\/seo\/post_slug<\/em>\r\n\r\nAnd you want to change the category name to "digital marketing." At this point, you'd want to move all your posts from the old category to the new one with the following URL:\r\n\r\n<em>Yourwebsite.com\/digitalmarketing\/post_slug<\/em>\r\n\r\nInstead of redirecting each post manually, you can leverage the wildcards feature to manage the process on your behalf. * asterisks characterize wildcards in the 301 Redirects plugins.\r\n\r\nYou'll then configure the plugin fields like this:\r\n\r\n<strong>Request:<\/strong> \/seo\/*\r\n\r\n<strong>Destination:<\/strong> \/digitalmarketing\/*\r\n\r\nAlso, check the "Use Wildcards?" box to activate the WordPress redirect for categories.\r\n\r\nOnce you click Save Changes, your 301 redirects will come into effect. Anyone who attempts to visit the old URL will be taken to the new one automatically.\r\n<h3><a href="https:\/\/wordpress.org\/plugins\/page-links-to\/" target="_blank" rel="noopener noreferrer">Page Links To<\/a><\/h3>\r\nThis plugin allows you to link a post or page to a URL of your choosing, instead of the original WordPress post or page URL. This can be useful if you want to set up navigational links to non-WordPress sections of your website or off-site resources.\r\n<h2>Create WordPress Redirects to Avoid Broken Links<\/h2>\r\nIt doesn't matter which method is used to set up a WordPress redirect. The crucial thing is just that you redirect outdated\/broken web pages when moving domains, changing your CMS or updating your site. If you don't redirect those old URLs to new ones that now exist in search engines, all those <a href="https:\/\/pagely.com\/blog\/build-quality-backlinks-blog\/" target="_blank" rel="noopener noreferrer">hard-earned links<\/a> to your site will vanish, and you'll have to start over regarding search engine optimization.\r\n\r\nDo you employ any other methods for handling WordPress redirects? If so, we'd love to hear what's working for you! Tweet your thoughts at <a href="http:\/\/www.twitter.com\/pagely">@Pagely<\/a>, and we'll share the best insights.