{"id":10476,"date":"2026-06-25T20:01:51","date_gmt":"2026-06-25T12:01:51","guid":{"rendered":"http:\/\/longzhuplatform.com\/?p=10476"},"modified":"2026-06-25T20:01:51","modified_gmt":"2026-06-25T12:01:51","slug":"what-is-a-301-redirect-how-to-do-a-301-redirect-on-3-common-servers-wordpress","status":"publish","type":"post","link":"http:\/\/longzhuplatform.com\/?p=10476","title":{"rendered":"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress"},"content":{"rendered":"<p><\/p> <div> <p><span style=\"font-weight:400\">A 301 redirect is a best practice in SEO. It preserves a good user experience for both search engines and website visitors when trying to access a file on a website.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">But what exactly is a 301 redirect, and how do you implement it? In this article, I\u2019ll discuss what a 301 redirect is and how to do it on three different types of servers plus WordPress sites.\u00a0<\/span><\/p> <p>\u00a0<\/p> <h2\/> <h2><strong>What Is a 301 Redirect?<\/strong><\/h2> <p><span style=\"font-weight:400\">You\u2019ve probably heard about 301 redirects. But what exactly are they and why do they matter so much? Let\u2019s break it down.<\/span><\/p> <h3\/> <h3><strong>Definition of 301 Redirect<\/strong><\/h3> <p><span style=\"font-weight:400\">A 301 redirect is an HTTP status code that signals a permanent redirect from one URL to another.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">In simple terms, it tells search engines that a page has permanently moved to a new location and quickly ushers website visitors to the new URL.<\/span><\/p> <p><span style=\"font-weight:400\">When a user or search engine bot tries to access the old URL, they\u2019re automatically forwarded to the new one. This happens so quickly that most people don\u2019t even notice the change.<\/span><\/p> <p><span style=\"font-weight:400\">Note that some modern servers and frameworks also support HTTP 308 redirects, which function similarly to 301 redirects but preserve the original request method.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">While 301 redirects remain the most commonly used option for SEO, you may encounter 308 redirects in newer web applications and APIs.<\/span><\/p> <h3\/> <h3><strong>How 301 Redirects Work<\/strong><\/h3> <p><span style=\"font-weight:400\">So how does this all work behind the scenes? When a server receives a request for a URL that\u2019s been 301 redirected, it responds with the 301 status code and the new URL location.<\/span><\/p> <p><span style=\"font-weight:400\">The browser or search engine bot then makes a new request to the new URL, and <\/span><i><span style=\"font-weight:400\">voila \u2014<\/span><\/i><span style=\"font-weight:400\"> the user ends up on the right page.\u00a0<\/span><\/p> <h3\/> <h3><strong>When to Use 301 Redirects<\/strong><\/h3> <p><span style=\"font-weight:400\">There are a few key situations where you\u2019ll want to use a 301 redirect:<\/span><\/p> <ol> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">If you\u2019ve permanently moved a page to a new URL.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">If you\u2019re merging two websites and want to consolidate content.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">If you\u2019ve changed your site\u2019s domain name or structure.<\/span><\/li> <\/ol> <p><span style=\"font-weight:400\">Basically, any time a page\u2019s location has changed for good, a 301 redirect should be implemented.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">For large site migrations, create a redirect mapping document that pairs every important old URL with its new destination. This helps preserve rankings, backlinks and user experience during the transition.<\/span><\/p> <h2\/> <h2><strong>Benefits of Using 301 Redirects<\/strong><\/h2> <p><span style=\"font-weight:400\">Now that we know what 301 redirects are and when to use them, let\u2019s discuss why they\u2019re so important. Implementing 301 redirects correctly can benefit SEO and user experience.<\/span><\/p> <h3\/> <h3><strong>Preserving Link Equity<\/strong><\/h3> <p><span style=\"font-weight:400\">One of the biggest advantages of using 301 redirects is that they help preserve your site\u2019s link equity. When another site links to your content, it passes along some of its authority and ranking power.<\/span><\/p> <p><span style=\"font-weight:400\">If you move that content without a 301 redirect, all of that valuable link equity is lost.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">But with a proper redirect in place, search engines understand that the page has moved and credit the new URL with the existing backlinks and authority.<\/span><\/p> <h3\/> <h3><strong>Improving User Experience<\/strong><\/h3> <p><span style=\"font-weight:400\">301 redirects also play a key role in creating a smooth user experience. Visitors clicking on an old link could get a 404 error page without them.<\/span><\/p> <p><span style=\"font-weight:400\">And if you don\u2019t have a <\/span><span style=\"font-weight:400\">custom 404 page <\/span><span style=\"font-weight:400\">that guides them elsewhere on the site, you\u2019ll probably lose a visitor.<\/span><\/p> <p><img fetchpriority=\"high\" width=\"1382\" height=\"825\" alt=\"A screenshot of the Bruce Clay website's 404 error page featuring a large &quot;404 PAGE NOT FOUND&quot; heading next to a small robot assembled from electronic components and wires. Below, helper links point to SEO, PPC, Training, and Tools pages.\" sizes=\"(max-width: 1382px) 100vw, 1382px\" nitro-lazy-srcset=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/bruce-clay-404-error-page.png 1382w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/bruce-clay-404-error-page-305x182.png 305w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/bruce-clay-404-error-page-635x379.png 635w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/bruce-clay-404-error-page-150x90.png 150w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/bruce-clay-404-error-page-768x458.png 768w\" nitro-lazy-src=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/bruce-clay-404-error-page.png\" class=\"aligncenter size-full wp-image-257394 nitro-lazy\" decoding=\"async\" nitro-lazy-empty=\"\" id=\"NjA1Ojk5MQ==-1\" data-nitro-empty-id=\"NjA1Ojk5MQ==-1\" src=\"data:image\/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTM4MiA4MjUiIHdpZHRoPSIxMzgyIiBoZWlnaHQ9IjgyNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=\" title=\"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress\u63d2\u56fe\" \/><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">But with a redirect, they\u2019re seamlessly sent to the new location of the content they wanted. There is no confusion, no frustration, just a quick and easy path to the information they need.\u00a0<\/span><\/p> <h3\/> <h3><strong>Maintaining Search Engine Rankings<\/strong><\/h3> <p><span style=\"font-weight:400\">Lastly, 301 redirects help maintain your search engine rankings when content moves. If you don\u2019t use a redirect, search engines may see the old URL as a 404 error and remove it from the index, costing you valuable organic traffic.<\/span><\/p> <p><span style=\"font-weight:400\">By implementing a 301, you signal to Google and other search engines that the page has permanently moved.\u00a0\u00a0<\/span><\/p> <h2\/> <h2><strong>How to Do a 301 Redirect on Apache, NGINX and Microsoft IIS<\/strong><\/h2> <p><span style=\"font-weight:400\">OK, now onto<\/span> <span style=\"font-weight:400\">the<\/span> <span style=\"font-weight:400\">subject of<\/span><i><span style=\"font-weight:400\"> how <\/span><\/i><span style=\"font-weight:400\">to do a 301 redirect.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">First, a word of warning: Be careful when making the changes. One small mistake in a server configuration file like .htaccess can take your site offline until the mistake is fixed.<\/span><\/p> <h3\/> <h3><strong>Implementing a 301 Redirect in Apache .htaccess Files<\/strong><\/h3> <p><span style=\"font-weight:400\">To implement a 301 redirect on an Apache server, you modify the .htaccess file, which allows changes per directory.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">The examples below use Apache\u2019s<\/span><code><span style=\"font-weight: 400;\"> mod_alias<\/span><\/code><span style=\"font-weight:400\"> directives, which are often simpler than <\/span><code><span style=\"font-weight: 400;\">mod_rewrite<\/span><\/code><span style=\"font-weight:400\"> rules for straightforward redirects.<\/span><\/p> <p><span style=\"font-weight:400\">This file controls that directory and all the subdirectories in it. Modifying the .htaccess file doesn\u2019t require administrative rights.<\/span><\/p> <p><span style=\"font-weight:400\">Follow these initial steps to get started:<\/span><\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">The first step in doing a 301 redirect is to have the old URL and the new URL handy.\u00a0<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Log on to your website and find the .htaccess file in the root web folder.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Open the .htaccess file by using a text editor like Notepad++.\u00a0<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Edit the file using the examples that follow.<\/span><\/li> <\/ul> <h4><strong>301 Redirecting a Page in Apache<\/strong><\/h4> <p><span style=\"font-weight:400\">When you are ready to 301 redirect a page in Apache, add a line to the .htaccess file that tells the server what to do. There are two ways you can do this:<\/span><\/p> <p><span style=\"font-weight:400\">Example 1:<\/span><\/p> <p><span style=\"font-weight:400\"><code>RedirectPermanent<\/code>\u00a0 \u00a0 \u00a0 <\/span><i><span style=\"font-weight:400\">\u00a0<code>\/old-file.html<\/code><\/span><\/i><span style=\"font-weight:400\">\u00a0 <\/span><i><span style=\"font-weight:400\">\u00a0 <code><\/code><\/span><\/i><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">Example 2:\u00a0<\/span><\/p> <p><code><span style=\"font-weight: 400;\">Redirect 301<\/span><\/code><i><span style=\"font-weight:400\">\u00a0 \u00a0<code>\/old-file.html<\/code>\u00a0 \u00a0 <\/span><\/i><code><i><span style=\"font-weight: 400;\"><\/span><\/i><\/code><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">There are essentially three parts to this:<\/span><\/p> <ol> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">The first part is the RedirectPermanent or Redirect 301, which tells the server what to do.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Then, you tell the server the old file\u2019s relative path. If the file is in your root web directory, you can use the file path without the domain name.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">The third part is the full path to the new file.<\/span><\/li> <\/ol> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">Save the file and test the redirect carefully before deploying changes to production.\u00a0<\/span><\/p> <h4\/> <h4><strong>301 Redirecting an Entire Domain in Apache<\/strong><\/h4> <p><span style=\"font-weight:400\">Add a line to the .htaccess file to tell the server what to do. A redirection from one domain to another would look like this:<\/span><\/p> <p><span style=\"font-weight:400\"><code>RedirectPermanent<\/code>\u00a0 \/\u00a0 <\/span><code><i><span style=\"font-weight: 400;\"><\/span><\/i><\/code><\/p> <h3\/> <h3><strong>Implementing a 301 Redirect on an NGINX Server<\/strong><\/h3> <p><span style=\"font-weight:400\">Implementing a 301 redirect on an NGINX server is similar to doing so on an Apache server (in other words, it\u2019s fairly straightforward).\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">You\u2019ll modify the configuration file, and you need admin privileges to do so.<\/span><\/p> <p><span style=\"font-weight:400\">Typically, this file is located in the directory: <\/span><span style=\"font-weight:400\"><code>\/usr\/local\/nginx\/conf<\/code>, <code>\/etc\/nginx<\/code><\/span><span style=\"font-weight:400\"> or <\/span><code><span style=\"font-weight: 400;\">\/usr\/local\/etc\/nginx<\/span><\/code><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">But not always. The file could also be somewhere else. The best thing to do is to use the command \u201cnginx -t\u201d to find where it is, like this:<\/span><\/p> <p><code><span style=\"font-weight: 400;\">$ sudo nginx -t<\/span><\/code><span style=\"font-weight:400\"><br \/><\/span><code><span style=\"font-weight: 400;\"> nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<\/span><\/code><span style=\"font-weight:400\"><br \/><\/span><code><span style=\"font-weight: 400;\"> nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/span><\/code><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">For simple redirects in NGINX, many administrators prefer the <\/span><code><span style=\"font-weight: 400;\">return 301<\/span><\/code><span style=\"font-weight:400\"> directive because it is simpler and more efficient than using <\/span><span style=\"font-weight:400\">rewrite<\/span><span style=\"font-weight:400\"> rules. For example:<\/span><\/p> <p><code><span style=\"font-weight: 400;\">location \/old-page {<\/span><\/code><\/p> <p><span style=\"font-weight:400\">\u00a0\u00a0\u00a0\u00a0<code>return 301 <\/code><\/span><\/p> <p><code><span style=\"font-weight: 400;\">}<\/span><\/code><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">For more advanced redirects involving patterns or entire folders, you can use a rewrite rule like the following:<\/span><\/p> <p><span style=\"font-weight:400\"><code>rewrite ^\/category\/something\/(.*)$<\/code>\u00a0 \u00a0 \u00a0 <code> permanent;<\/code><\/span><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">At this point, I want to stress that this specific mod rewrite is for redirecting a specific folder URL (the entire folder) to another URL.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">The little asterisk (.*) is a wildcard symbol, so that means that any path after the forward slash in the first URL will be redirected and used in the second URL ($1).\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">This redirect basically says the following: \u201cif you have a category named something, then redirect it and anything underneath it\u00a0 to another folder with the name of something-else.\u201d<\/span><\/p> <h3\/> <h3><strong>Implementing a 301 Redirect on a Microsoft IIS Server<\/strong><\/h3> <p><span style=\"font-weight:400\">Implementing a 301 redirect on a Microsoft IIS server is a bit more complex than on other servers.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">You will most likely need admin rights to do a 301 redirect, and you need to ensure that the HTTP Redirection Feature is installed. You can do this in Server Manager, under Manage &gt; Add Roles and Features.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">To implement a 301 redirect:<\/span><\/p> <ol> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Open the internet services manager (Start &gt; All &gt; Windows Tools &gt; Internet Information Services (IIS) Manager, or search for IIS Manager in the Start Menu).<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">In the left column, select the site, folder or page you want to redirect. If you cannot see the thing you want to redirect, you can select the site, then click on the \u201cContent View\u201d tab to show the contents of the folder to select the file you want to redirect. After selecting the file or folder, you can click on \u201cFeatures View\u201d again.<\/span><\/li> <\/ol> <p><img loading=\"lazy\" width=\"1731\" height=\"1007\" alt=\"The Content View interface of IIS Manager showing web directory files. Green arrows draw attention to the &quot;Content View&quot; tab at the bottom of the window and the selected &quot;oldpage.htm&quot; file in the directory list.\" sizes=\"auto, (max-width: 1731px) 100vw, 1731px\" nitro-lazy-srcset=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page.png 1731w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page-313x182.png 313w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page-651x379.png 651w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page-150x87.png 150w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page-768x447.png 768w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page-1536x894.png 1536w\" nitro-lazy-src=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-content-view-select-old-page.png\" class=\"aligncenter size-full wp-image-257397 nitro-lazy\" decoding=\"async\" nitro-lazy-empty=\"\" id=\"Njc5OjExMDI=-1\" data-nitro-empty-id=\"Njc5OjExMDI=-1\" src=\"data:image\/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTczMSAxMDA3IiB3aWR0aD0iMTczMSIgaGVpZ2h0PSIxMDA3IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" title=\"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress\u63d2\u56fe1\" \/><\/p> <p>3. <span style=\"font-weight:400\">In the center panel, using the Features View tab, find the \u201cHTTP Redirect\u201d icon and double-click.<\/span><\/p> <p>\u00a0<\/p> <p><img loading=\"lazy\" width=\"1395\" height=\"993\" alt=\"The features view dashboard inside IIS Manager for a domain home screen. A bright green arrow points directly to the &quot;HTTP Redirect&quot; management icon among other server configuration tools.\" sizes=\"auto, (max-width: 1395px) 100vw, 1395px\" nitro-lazy-srcset=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-manager-features-http-redirect.png 1395w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-manager-features-http-redirect-256x182.png 256w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-manager-features-http-redirect-532x379.png 532w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-manager-features-http-redirect-140x100.png 140w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-manager-features-http-redirect-768x547.png 768w\" nitro-lazy-src=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-manager-features-http-redirect.png\" class=\"aligncenter size-full wp-image-257396 nitro-lazy\" decoding=\"async\" nitro-lazy-empty=\"\" id=\"NjgyOjk3NQ==-1\" data-nitro-empty-id=\"NjgyOjk3NQ==-1\" src=\"data:image\/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTM5NSA5OTMiIHdpZHRoPSIxMzk1IiBoZWlnaHQ9Ijk5MyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=\" title=\"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress\u63d2\u56fe2\" \/><\/p> <p>\u00a0<\/p> <p>4. <span style=\"font-weight:400\">Select \u201cRedirect requests to this destination\u201d then type the URL you want to redirect.<\/span><\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Redirect to a single page:<\/span><code><span style=\"font-weight: 400;\"> www.mydomain.com\/newpage.htm<\/span><\/code><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Redirect to a directory: <\/span><code><span style=\"font-weight: 400;\">www.mydomain.com\/newdirectory<\/span><\/code><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Redirect to a domain: <\/span><code><span style=\"font-weight: 400;\">www.mydomain.com<\/span><\/code><\/li> <\/ul> <p>5. <span style=\"font-weight:400\">If keeping the directory structure and page names the same, ensure the two checkboxes below \u201credirect options\u201d are unselected. Here is some context for the two options you will see:<\/span><\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">\u201cRedirect all requests to exact destination:\u201d Choose this if you want every file in the directory or domain you\u2019re redirecting from to be routed to a single page. <\/span><b>One situation where you would want to do this<\/b><span style=\"font-weight:400\"> is if you are combining groups of directories into one separate site devoted to a specific topic, rather than have that topic on your site. In which case, you would not want all that content on the other site showing up on this existing site as duplicate content. So these content pages and files would need to be pruned and redirected accordingly. <\/span><b>Another situation is<\/b><span style=\"font-weight:400\"> if you had a hacked directory that wasn\u2019t applied to the entire site, and you no longer want people to go to that directory. You could technically rename that directory, and redirect all files to a specific page. With additional work, this could effectively rebuild that directory.<\/span><\/li> <\/ul> <p>\u00a0<\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">\u201cOnly redirect requests to content in this directory;\u201d Choose this if you want to redirect only the files located in the selected directory, not subdirectories. <\/span><b>One situation where you would want to do this<\/b><span style=\"font-weight:400\"> is if you have performed a content audit and found pages that you want to prune from your overall content profile. You would want to eliminate and redirect pages within a category to the main category page.<\/span><\/li> <\/ul> <p>6. <span style=\"font-weight:400\">For \u201cStatus code,\u201d choose \u201cPermanent (301).\u201d<\/span><\/p> <p><img loading=\"lazy\" width=\"1425\" height=\"1011\" alt=\"An HTTP Redirect configuration window in IIS. Green instructional arrows highlight Step 4 (destination URL input), Step 5 (checking redirect all requests to exact destination), and Step 6 (selecting a Permanent 301 status code).\" sizes=\"auto, (max-width: 1425px) 100vw, 1425px\" nitro-lazy-srcset=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-http-redirect-configuration-steps.png 1425w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-http-redirect-configuration-steps-257x182.png 257w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-http-redirect-configuration-steps-534x379.png 534w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-http-redirect-configuration-steps-141x100.png 141w, https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-http-redirect-configuration-steps-768x545.png 768w\" nitro-lazy-src=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/images\/optimized\/rev-6d52e7d\/www.bruceclay.com\/wp-content\/uploads\/2026\/06\/iis-http-redirect-configuration-steps.png\" class=\"aligncenter size-full wp-image-257395 nitro-lazy\" decoding=\"async\" nitro-lazy-empty=\"\" id=\"Njk5OjEwNDU=-1\" data-nitro-empty-id=\"Njk5OjEwNDU=-1\" src=\"data:image\/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQyNSAxMDExIiB3aWR0aD0iMTQyNSIgaGVpZ2h0PSIxMDExIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" title=\"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress\u63d2\u56fe3\" \/><\/p> <p>\u00a0<\/p> <p>7. <span style=\"font-weight:400\">In the menu on the right column, choose \u201cApply.\u201d<\/span><\/p> <p>\u00a0<\/p> <h2><strong>How to Do a 301 Redirect on WordPress\u00a0<\/strong><\/h2> <p><span style=\"font-weight:400\">If your site runs on WordPress, you\u2019re in luck \u2014 there are several handy plugins that make setting up 301 redirects a breeze. Some popular options include:<\/span><\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Redirection.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Yoast SEO.\u00a0<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Simple 301 Redirects.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Quick Page\/Post Redirect Plugin.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Rank Math.<\/span><\/li> <\/ul> <p><span style=\"font-weight:400\">With these plugins, you can easily create and manage redirects right from your WordPress dashboard, without messing with any code.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">Just enter the old URL, the new URL, hit save and you\u2019re good to go.<\/span><\/p> <p><span style=\"font-weight:400\">Note that for large websites or complex migrations, server-level redirects are generally more scalable and performant than relying entirely on plugins.<\/span><\/p> <h2\/> <h2><strong>Common Mistakes to Avoid with 301 Redirects<\/strong><\/h2> <p><span style=\"font-weight:400\">When implementing 301 redirects, a few common pitfalls can lead to issues later on. So, let\u2019s dive into some of the most frequent mistakes and how to avoid them.<\/span><\/p> <h3\/> <h3><strong>Redirect Chains<\/strong><\/h3> <p><span style=\"font-weight:400\">First, we have the redirect chain. This happens when a series of redirects point to each other, creating a long chain of hops before finally reaching the destination page.<\/span><\/p> <p><span style=\"font-weight:400\">Not only does this slow down the user experience, but it can also dilute the link equity you\u2019re trying to pass along. Search engines might even give up trying to follow the chain altogether.<\/span><\/p> <h3\/> <h3><strong>Redirect Loops<\/strong><\/h3> <p><span style=\"font-weight:400\">Next, we have redirect loops. This is when you accidentally create a circular path of redirects, sending users and search engine bots into an infinite loop of frustration.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">It\u2019s crucial to double-check your redirects to ensure they\u2019re all pointing in the right direction.<\/span><\/p> <h3\/> <h3><strong>Redirecting to Irrelevant Pages<\/strong><\/h3> <p><span style=\"font-weight:400\">Another common mistake is redirecting users to completely irrelevant pages. This is a surefire way to annoy your visitors and increase bounce rates.<\/span><\/p> <p><span style=\"font-weight:400\">Always take the time to map out your redirects and ensure that users are sent to the most relevant page possible. It\u2019s worth the extra effort.<\/span><\/p> <p><span style=\"font-weight:400\">As a final note on this, avoid redirecting large groups of unrelated URLs to the homepage. Search engines may treat these as soft 404s if the destination is not meaningfully related to the original content.<\/span><\/p> <h2\/> <h2><strong>Using 302s Instead of 301 Redirects<\/strong><\/h2> <p><span style=\"font-weight:400\">It is important to make sure that you\u2019re using the redirect type that is relevant for your use case.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">If you\u2019re only making temporary changes, you have to make sure that these changes are followed up by removing the redirect as soon as possible once Google has crawled and indexed the new versions of your pages.<\/span><\/p> <p><span style=\"font-weight:400\">If the redirect is of a permanent nature, always use the 301 redirect instead of the 302.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">While Google can pass ranking signals through many redirect types today, using the correct redirect type still matters. A 301 or 308 redirect clearly signals a permanent move, while a 302 or 307 indicates a temporary change.<\/span><\/p> <h2\/> <h2><strong>Best Practices for 301 Redirects<\/strong><\/h2> <p><span style=\"font-weight:400\">Now that we\u2019ve covered some of the most common mistakes to avoid with 301 redirects, let\u2019s talk about best practices.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">Here are a few key tips to keep in mind:<\/span><\/p> <h3\/> <h3><strong>Updating Internal Links<\/strong><\/h3> <p><span style=\"font-weight:400\">One often overlooked aspect of implementing redirects is updating your internal links.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">If you\u2019ve moved a page and set up a 301 redirect, that\u2019s great. But don\u2019t forget to also update any internal links on your site that point to the old URL.<\/span><\/p> <p><span style=\"font-weight:400\">This helps site visitors and search engine bots navigate your site more efficiently, without running into unnecessary redirects.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">It\u2019s a small step that can make a big difference in your site\u2019s overall performance.<\/span><\/p> <h3\/> <h3><strong>Monitoring and Testing Redirects<\/strong><\/h3> <p><span style=\"font-weight:400\">Another key best practice is regularly monitoring and testing your redirects. Just because you set them up once doesn\u2019t mean you can set it and forget it.<\/span><\/p> <p><span style=\"font-weight:400\">I recommend using tools like Screaming Frog or Google Search Console to monitor your redirects and ensure they\u2019re all working as intended.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">You can also test redirects manually using browser developer tools, online redirect header checkers or command-line tools like curl. For example:<\/span><\/p> <p><code><span style=\"font-weight: 400;\">curl -I <\/span><\/code><\/p> <p>\u00a0<\/p> <p><span style=\"font-weight:400\">This command returns the HTTP response headers so you can verify that the page is returning the correct redirect status code and destination URL.<\/span><\/p> <p><span style=\"font-weight:400\">You\u2019d be surprised how often redirect issues can crop up over time, especially if you frequently change your site\u2019s structure or content.<\/span><\/p> <p><span style=\"font-weight:400\">If you use a CDN or reverse proxy like Cloudflare, redirect behavior may also be configured or cached outside the origin server.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">In these cases, you may need to clear caches or review CDN-level redirect rules when troubleshooting issues<\/span><\/p> <h3\/> <h3><strong>Keeping URLs Simple and Relevant<\/strong><\/h3> <p><span style=\"font-weight:400\">Finally, when you\u2019re setting up new URLs for your redirected pages, it\u2019s important to keep them simple, relevant and descriptive.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">Avoid using complex structures or unnecessary parameters that could cause problems down the line.<\/span><\/p> <p><span style=\"font-weight:400\">Remember, your URLs are important for user experience and your site\u2019s overall SEO.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">When you keep them clean and descriptive, you\u2019ll make it easier for both users and search engines to understand what your pages are about.<\/span><\/p> <h2\/> <h2><strong>Final Thoughts<\/strong><\/h2> <p><span style=\"font-weight:400\">301 redirects may seem like a small, technical detail, but they are crucial in keeping the web running smoothly.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">Understanding when and how to use them helps ensure that your site visitors always find what they\u2019re looking for, even if things move around behind the scenes.<\/span><\/p> <p><span style=\"font-weight:400\">With these best practices in your toolkit, you\u2019ll be sure to create a great user experience on any website.\u00a0<\/span><\/p> <h3\/> <h3><strong>FAQ: How can I use a 301 redirect to manage permanent URL changes on my website?<\/strong><\/h3> <p><span style=\"font-weight:400\">A 301 redirect is the standard method for permanently moving a webpage from one URL to another.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">When implemented correctly, it automatically sends users and search engines from the old URL to the new one, helping preserve traffic, maintain search visibility and prevent 404 errors.<\/span><\/p> <p><span style=\"font-weight:400\">A 301 redirect differs from a 302 redirect, which indicates that a move is temporary.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">While a 301 signals that search engines should update their index to the new URL, a 302 typically tells them to continue treating the original URL as the primary destination.<\/span><\/p> <p><span style=\"font-weight:400\">Proper 301 redirect management is important because it:<\/span><\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Preserves user access to content after URL changes.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Helps maintain organic search performance during site updates and migrations.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Consolidates ranking signals from existing backlinks.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Prevents broken links and unnecessary 404 errors.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Improves the overall user experience.<\/span><\/li> <\/ul> <p><span style=\"font-weight:400\">301 redirects are commonly used during website migrations, domain changes, content consolidation and URL structure updates.\u00a0<\/span><\/p> <p><span style=\"font-weight:400\">However, poorly managed redirects can create issues such as redirect chains, redirect loops and slower page loads.<\/span><\/p> <p><span style=\"font-weight:400\">Best practices for managing 301 redirects include:<\/span><\/p> <ul> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Use 301 redirects only for permanent URL changes.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Redirect each old URL directly to its most relevant new destination.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Avoid redirect chains by limiting redirects to a single hop whenever possible.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Maintain a documented redirect map for site updates and migrations.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Regularly monitor 404 errors and fix broken links.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Keep redirects in place as long as users, backlinks or search engines may still access the old URLs.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Audit redirects periodically to identify outdated or unnecessary rules.<\/span><\/li> <\/ul> <h4\/> <h4><strong>Action Plan: Implementing 301 Redirects<\/strong><\/h4> <ol> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Identify the URLs that need to be redirected.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Map each old URL to the most relevant new URL.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Configure the redirect within your CMS, server or redirect management platform.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Verify that each redirect returns a 301 Moved Permanently status code.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Test redirects to confirm they resolve correctly and do not create loops or chains.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Monitor analytics and search performance after implementation.<\/span><\/li> <li style=\"font-weight:400\" aria-level=\"1\"><span style=\"font-weight:400\">Review redirects regularly, especially after major website updates.<\/span><\/li> <\/ol> <p><span style=\"font-weight:400\">Tools such as Redirect Path can help validate redirect status codes and identify redirect chains, loops and broken URLs.<\/span><\/p> <p><span style=\"font-weight:400\">301 redirects are a critical part of technical SEO and website maintenance. A well-planned redirect strategy helps users find the content they need, preserves valuable search visibility and supports a smooth experience during website changes or migrations.<\/span><\/p> <section class=\"blog-author-bio\" aria-label=\"About the author\"> <div class=\"blog-author-desc\"> <p> See Bruce&#8217;s author page for links to connect on social media. <\/p> <\/p><\/div> <div> <img loading=\"lazy\"  height=\"96\" width=\"96\" nitro-lazy-srcset=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/desktop\/optimized\/rev-6d52e7d\/secure.gravatar.com\/avatar\/0c3d43aad6ccee088041dc55b40bbcc9.0a077a19b0dd11c7c9e10640f1a5cfc4e0c987f78856492a2698a8c9a83b38b9 2x\" nitro-lazy-src=\"https:\/\/cdn-benkb.nitrocdn.com\/ZtlNGPuVDgGYZTtnpPrYcgJWctLyDuUr\/assets\/desktop\/optimized\/rev-6d52e7d\/secure.gravatar.com\/avatar\/01621a625eaba9ce8ce9c5828ca1896a.0a077a19b0dd11c7c9e10640f1a5cfc4e0c987f78856492a2698a8c9a83b38b9\" class=\"avatar avatar-96 photo nitro-lazy\" decoding=\"async\" nitro-lazy-empty=\"\" id=\"ODE4OjM0Nw==-1\" data-nitro-empty-id=\"ODE4OjM0Nw==-1\" src=\"data:image\/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHdpZHRoPSI5NiIgaGVpZ2h0PSI5NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48L3N2Zz4=\" title=\"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress\u63d2\u56fe4\" alt=\"What Is a 301 Redirect? How To Do a 301 Redirect on 3 Common Servers + WordPress\u63d2\u56fe4\" \/> <\/div> <\/section><\/div> <p><script id=\"33373f0fa928acd46ca8a8852c3f89f4-1\" type=\"nitropack\/inlinescript\" class=\"nitropack-inline-script\"> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', ' fbq('init', '462813240575787'); fbq('track', 'PageView'); <\/script>SEO,redirection strategy,SEO optimization,URL redirection,website migrationredirection strategy,SEO,SEO optimization,URL redirection,website migration#Redirect #Redirect #Common #Servers #WordPress1782388911<\/p> ","protected":false},"excerpt":{"rendered":"<p>A 301 redirect is a best practice in SEO. It preserves a good user experience for both search engines and website visitors when trying to access a file on a website.\u00a0 But what exactly is a 301 redirect, and how do you implement it? In this article, I\u2019ll discuss what a 301 redirect is and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10477,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[1744,22972,22617,97,41716,38925,41717,41718,168],"class_list":["post-10476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-digital","tag-common","tag-redirect","tag-redirection-strategy","tag-seo","tag-seo-optimization","tag-servers","tag-url-redirection","tag-website-migration","tag-wordpress"],"acf":[],"_links":{"self":[{"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=\/wp\/v2\/posts\/10476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10476"}],"version-history":[{"count":0,"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=\/wp\/v2\/posts\/10476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=\/wp\/v2\/media\/10477"}],"wp:attachment":[{"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10476"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/longzhuplatform.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}