{"id":239094,"date":"2025-05-13T03:29:59","date_gmt":"2025-05-13T03:29:59","guid":{"rendered":"https:\/\/peraltafinancing.com\/business\/marketing\/how-to-create-htaccess-redirects-most-common-use-cases\/"},"modified":"2025-05-13T03:29:59","modified_gmt":"2025-05-13T03:29:59","slug":"how-to-create-htaccess-redirects-most-common-use-cases","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=239094","title":{"rendered":"How to Create .htaccess Redirects (Most Common Use Cases)"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"content\">\n<p>Whenever you move content, change domain names, or simply tweak a page\u2019s URL, you\u2019ll likely use a redirect. This ensures your users (and Google) get to the right page, and it preserves the SEO value from your backlinks.<\/p>\n<p>You can use .htaccess redirects specifically to do this.<\/p>\n<p>But I get that messing with your site\u2019s server files can sound daunting.<\/p>\n<p>So the goal of this guide is to make .htaccess redirects as accessible as possible.<\/p>\n<p>Here\u2019s the plan:<\/p>\n<ul>\n<li>We\u2019ll start with a walkthrough to find your .htaccess file and get ready to make changes (feel free to skip this part if you have it ready to go)<\/li>\n<li>We\u2019ll then go through the most common .htaccess redirect use cases in detail<\/li>\n<li>Then we\u2019ll go through a cheat sheet of the symbols and flags you can use to build custom .htaccess rules<\/li>\n<li>Finally, we\u2019ll show you how to make sure everything is working properly and how to pinpoint issues<\/li>\n<\/ul>\n<p>Sound good? Let\u2019s go.<\/p>\n<h2>How to Set Up .htaccess Redirects<\/h2>\n<p>Before you can create <a title=\"Redirects 101: A Beginner\u2019s Guide to Setup &amp; Best Practices\" href=\"https:\/\/backlinko.com\/redirects\" target=\"_blank\" rel=\"noopener\">redirects<\/a>, you need to access your .htaccess file. This file lives on your server and controls various aspects of how your website behaves.<\/p>\n<p>It looks something like this (for a WordPress site in particular):<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-300x266.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1280x1135.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-768x681.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1536x1362.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-2048x1815.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-480x425.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-640x567.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-960x851.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1440x1276.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1600x1418.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1920x1702.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"htaccess \u2013 File Example\" alt=\"htaccess \u2013 File Example\" data-aspect-ratio=\"0.88571428571429\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-300x266.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1280x1135.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-768x681.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1536x1362.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-2048x1815.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-480x425.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-640x567.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-960x851.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1440x1276.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1600x1418.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/htacces-file-example-1920x1702.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>There are two main ways to access and edit your .htaccess file:<\/p>\n<ul>\n<li>Through your hosting provider\u2019s control panel<\/li>\n<li>Via an FTP client<\/li>\n<\/ul>\n<p>I\u2019d personally recommend the first option if you\u2019re an absolute beginner. Or if you just want to keep the technical stuff to a minimum.<\/p>\n<p>That\u2019s not to say that using an FTP client is difficult (or that every hosting platform is a piece of cake to navigate). But generally, your file manager is going to be a bit more intuitive.<\/p>\n<h3>Editing .htaccess Through Your Hosting Control Panel<\/h3>\n<p>Most major hosting providers offer a file manager in their control panel that lets you edit files directly.<\/p>\n<p>The general workflow looks something like this, although some of the specifics might vary between hosts:<\/p>\n<ol>\n<li>Log in to your hosting account<\/li>\n<li>Find the File Manager (usually in cPanel or a similar dashboard)<\/li>\n<li>Navigate to your website\u2019s root directory (often called public_html)<\/li>\n<li>Find the .htaccess file<\/li>\n<\/ol>\n<p>Once you find it, you can usually right-click and select \u201cEdit\u201d to make changes.<\/p>\n<p>As an example, here\u2019s how the interface looks in the cPanel platform. First, I navigate to my domain\u2019s website dashboard and find the file manager:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-300x153.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1280x651.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-768x391.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1536x782.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-2048x1042.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-480x244.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-640x326.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-960x488.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1440x733.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1600x814.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1920x977.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"cPanel \u2013 File Manager\" alt=\"cPanel \u2013 File Manager\" data-aspect-ratio=\"0.50857142857143\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-300x153.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1280x651.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-768x391.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1536x782.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-2048x1042.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-480x244.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-640x326.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-960x488.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1440x733.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1600x814.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-1920x977.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>And in there I can see public_html:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-300x243.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1280x1036.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-768x621.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1536x1243.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-2048x1657.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-480x388.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-640x518.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-960x777.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1440x1165.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1600x1295.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1920x1554.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"cPanel \u2013 File Manager \u2013 Files\" alt=\"cPanel \u2013 File Manager \u2013 Files\" data-aspect-ratio=\"0.80857142857143\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-300x243.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1280x1036.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-768x621.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1536x1243.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-2048x1657.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-480x388.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-640x518.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-960x777.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1440x1165.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1600x1295.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/cpanel-file-manager-files-1920x1554.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>I then click my .htaccess file:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-300x186.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1280x794.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-768x476.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1536x952.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-2048x1270.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-480x298.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-640x397.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-960x595.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1440x893.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1600x992.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1920x1190.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"File Manager \u2013 htaccess\" alt=\"File Manager \u2013 htaccess\" data-aspect-ratio=\"0.62\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-300x186.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1280x794.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-768x476.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1536x952.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-2048x1270.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-480x298.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-640x397.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-960x595.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1440x893.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1600x992.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/file-manager-htaccess-1920x1190.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>Simple.<\/p>\n<h3>Via FTP<\/h3>\n<p>You can also use an FTP client like <a title=\"FileZilla\" href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noopener\">FileZilla<\/a>, <a title=\"Cyberduck\" href=\"https:\/\/cyberduck.io\/\" target=\"_blank\" rel=\"noopener\">Cyberduck<\/a>, or <a title=\"WinSCP\" href=\"https:\/\/winscp.net\/eng\/download.php\" target=\"_blank\" rel=\"noopener\">WinSCP<\/a>. These give you similar access, but you can do it directly rather than through your hosting provider.<\/p>\n<p>To get started, download and install an FTP client. We\u2019ll go with Cyberduck for the example below.<\/p>\n<p>Then connect to your server using your FTP credentials (your host can provide these \u2014 mine were under <strong>Files &gt; FTP Accounts<\/strong>):<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-300x183.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1280x782.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-768x469.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1536x938.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-2048x1251.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-480x293.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-640x391.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-960x586.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1440x880.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1600x977.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1920x1173.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"FTP Protocol \u2013 Popup\" alt=\"FTP Protocol \u2013 Popup\" data-aspect-ratio=\"0.61142857142857\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-300x183.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1280x782.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-768x469.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1536x938.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-2048x1251.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-480x293.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-640x391.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-960x586.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1440x880.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1600x977.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-popup-1920x1173.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>Then, within the FTP client, navigate to your site\u2019s root directory.<\/p>\n<p>It\u2019s probably named public_html, which may open automatically. Then, find and download your .htaccess file:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-300x175.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1280x746.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-768x448.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1536x896.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-2048x1194.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-480x280.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-640x373.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-960x560.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1440x840.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1600x933.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1920x1120.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"FTP \u2013 File Manager\" alt=\"FTP \u2013 File Manager\" data-aspect-ratio=\"0.58285714285714\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-300x175.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1280x746.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-768x448.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1536x896.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-2048x1194.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-480x280.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-640x373.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-960x560.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1440x840.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1600x933.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-file-manager-1920x1120.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>Make your changes in a text editor, and then upload the modified file back to the server. You might be able to skip the download\/upload step and make edits directly, depending on the tool you use:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-300x219.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1280x935.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-768x561.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1536x1122.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-2048x1496.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-480x351.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-640x467.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-960x701.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1440x1052.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1600x1169.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1920x1402.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"FTP Protocol \u2013 Edit With\" alt=\"FTP Protocol \u2013 Edit With\" data-aspect-ratio=\"0.73\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-300x219.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1280x935.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-768x561.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1536x1122.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-2048x1496.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-480x351.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-640x467.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-960x701.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1440x1052.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1600x1169.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/ftp-protocol-edit-with-1920x1402.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<h3>What About WordPress?<\/h3>\n<p>If you\u2019re running a WordPress site, you usually don\u2019t need to edit your .htaccess file to set up redirects.<\/p>\n<p>Instead, you can use dedicated redirect plugins like <a title=\"Redirection\" href=\"https:\/\/en-gb.wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"noopener\">Redirection<\/a> or <a title=\"301 Redirects\" href=\"https:\/\/wordpress.org\/plugins\/eps-301-redirects\/\" target=\"_blank\" rel=\"noopener\">301 Redirects<\/a>.<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-300x88.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1280x375.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-768x225.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1536x450.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-2048x600.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-480x141.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-640x188.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-960x281.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1440x422.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1600x469.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1920x563.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"301 Redirects \u2013 Redirect Rules\" alt=\"301 Redirects \u2013 Redirect Rules\" data-aspect-ratio=\"0.29285714285714\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-300x88.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1280x375.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-768x225.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1536x450.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-2048x600.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-480x141.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-640x188.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-960x281.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1440x422.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1600x469.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/03\/301-redirects-redirect-rules-1920x563.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>These plugins are perfect if you\u2019re not comfortable editing server files or if you just need to set up a couple of redirects quickly. But they won\u2019t help you much for more complex redirections or when you\u2019re performing a full site migration.<\/p>\n<p>Other SEO plugins, like <a title=\"Rank Math SEO \u2013 AI SEO Tools to Dominate SEO Rankings \u2013 WordPress plugin\" href=\"https:\/\/wordpress.org\/plugins\/seo-by-rank-math\/\" target=\"_blank\" rel=\"noopener\">Rank Math<\/a>, offer redirect managers alongside options to edit your .htaccess file within the WordPress dashboard:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-300x274.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1280x1167.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-768x700.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1536x1401.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-2048x1868.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-480x438.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-640x584.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-960x876.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1440x1313.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1600x1459.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1920x1751.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"Rank Math \u2013 htaccess\" alt=\"Rank Math \u2013 htaccess\" data-aspect-ratio=\"0.91142857142857\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-300x274.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1280x1167.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-768x700.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1536x1401.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-2048x1868.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-480x438.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-640x584.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-960x876.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1440x1313.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1600x1459.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/rank-math-htaccess-1-1920x1751.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>Adding redirects directly to your .htaccess file (or indirectly via a plugin like Rank Math) often results in faster performance since it cuts out the middleman (the plugin). And once you know how to do it, it\u2019s not all that technical anyway.<\/p>\n<p>(It won\u2019t always be the best option from a performance perspective. But generally it\u2019s going to be faster.)<\/p>\n<p>Other platforms like Shopify and Wix don\u2019t give you direct access to .htaccess files. In these cases, you\u2019ll need to use the platform\u2019s built-in redirect tools instead.<\/p>\n<p>The same may be true for WordPress site owners if your site runs on <strong>WordPress.com<\/strong>, rather than external hosting with a <strong>WordPress.org<\/strong> installation.<\/p>\n<h3>Before You Begin: Important Prerequisites<\/h3>\n<p>Before you start making changes to your .htaccess file, bear the following in mind:<\/p>\n<ul>\n<li><strong>You need to have an .htaccess file:<\/strong> If you don\u2019t already have an .htaccess file, you can create one in your public_html folder (WordPress will often create one for you automatically).<\/li>\n<li><strong>It\u2019s easy to make mistakes:<\/strong> Making changes to your .htaccess file without knowing what you\u2019re doing can have major consequences for your site. Ideally consult with your developer before implementing .htaccess redirects, and make any major changes on a staging site if possible to make sure they work properly.<\/li>\n<li><strong>The rules below are just guides:<\/strong> I\u2019ve included lots of examples of redirect rules below with explanations of what they do. But you may need to modify them to ensure they work properly on your site.<\/li>\n<li><strong>Enable mod_rewrite:<\/strong> Most modern hosting environments will enable the mod_rewrite module by default (which you want, and therefore likely don\u2019t need to worry about). If your redirects aren\u2019t working, reach out to your hosting provider to see if this is the problem.<\/li>\n<li><strong>Enable Options + FollowSymLinks:<\/strong> You may or may not need to enable this in your .htaccess file (usually you won\u2019t need to worry about it). Again, reach out to your host if you\u2019re not sure.<\/li>\n<\/ul>\n<p>Now that you know how to actually get into and edit your .htaccess file, let\u2019s look at how to create different types of redirects.<\/p>\n<h2>How to Redirect a Single URL<\/h2>\n<p>Redirecting a single URL to another is probably the most common redirect you\u2019ll create. It\u2019s perfect for when you\u2019ve:<\/p>\n<ul>\n<li>Changed a page\u2019s URL structure<\/li>\n<li>Merged two pages into one<\/li>\n<li>Moved specific content to a new location<\/li>\n<\/ul>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__visual-chart backlinko-image\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-300x188.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1280x802.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-768x481.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1536x963.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-2048x1284.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-480x301.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-640x401.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-960x602.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1440x903.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1600x1003.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1920x1203.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"Merging two URLs\" alt=\"Merging two URLs\" data-aspect-ratio=\"0.62714285714286\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-300x188.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1280x802.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-768x481.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1536x963.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-2048x1284.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-480x301.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-640x401.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-960x602.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1440x903.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1600x1003.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/merging-two-urls-1920x1203.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>This type of redirect is straightforward and requires just one line of code in your .htaccess file.<\/p>\n<p>Here\u2019s the code you\u2019ll need to add to your .htaccess file (swapping out the URL path and domain for your own):<\/p>\n<pre style=\"padding-left: 20px;\">Redirect 301 \/old-page https:\/\/yoursite.com\/new-page<\/pre>\n<p>Let\u2019s break down what this means:<\/p>\n<ul>\n<li><strong>Redirect:<\/strong> Tells the server you want to create a redirect<\/li>\n<li><strong>301:<\/strong> Specifies a permanent redirect (more on this below)<\/li>\n<li><strong>\/old-page:<\/strong> The path of the original page (relative to your root directory)<\/li>\n<li><strong>https:\/\/yoursite.com\/new-page:<\/strong> The full URL of the destination page<\/li>\n<\/ul>\n<h3>Single URL Redirect Example<\/h3>\n<p>Let\u2019s say you have a page about dog training at:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/yourpetsite.com\/5-great-tips-for-training-dogs\/<\/pre>\n<p>And you\u2019ve moved it to:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/yourpetsite.com\/dog-training-tips\/<\/pre>\n<p>Your redirect code would look like this:<\/p>\n<pre style=\"padding-left: 20px;\">Redirect 301 \/5-great-tips-for-training-dogs\/ https:\/\/yourpetsite.com\/dog-training-tips\/<\/pre>\n<h3>Permanent vs. Temporary Redirects<\/h3>\n<p>The 301 in our example above indicates a permanent redirect. This tells search engines to update their index with the new URL and transfer the SEO value from the old page to the new one.<\/p>\n<p>If you\u2019re only redirecting temporarily (like for maintenance or a seasonal promotion), use 302 instead:<\/p>\n<pre style=\"padding-left: 20px;\">Redirect 302 \/sale https:\/\/yoursite.com\/spring-sale<\/pre>\n<p>If you\u2019re trying to preserve SEO rankings (and your <a title=\"Free Website Authority Checker (Enter Any Domain or URL)\" href=\"https:\/\/backlinko.com\/tools\/website-authority\" target=\"_blank\" rel=\"noopener\">website\u2019s authority<\/a>), <strong>always use 301 redirects for permanent URL changes<\/strong>. Search engines treat 301s as permanent and 302s as temporary, which affects how they transfer link equity.<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__visual-chart backlinko-image\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-300x187.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1280x800.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-768x480.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1536x960.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-2048x1280.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-480x300.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-640x400.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-960x600.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1440x900.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1600x1000.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1920x1200.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"301 Redirect\" alt=\"301 Redirect\" data-aspect-ratio=\"0.62428571428571\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-300x187.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1280x800.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-768x480.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1536x960.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-2048x1280.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-480x300.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-640x400.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-960x600.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1440x900.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1600x1000.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/301-redirect-1920x1200.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<h2>How to Redirect a Subfolder<\/h2>\n<p>Sometimes you need to redirect an entire section of your website rather than just a single page. This is common when you are:<\/p>\n<ul>\n<li>Reorganizing your <a title=\"How to Setup an SEO-Friendly Website Architecture\" href=\"https:\/\/backlinko.com\/hub\/seo\/architecture\" target=\"_blank\" rel=\"noopener\">site structure<\/a><\/li>\n<li>Moving a blog or product category to a new location<\/li>\n<li>Consolidating content from multiple sections<\/li>\n<\/ul>\n<p>Redirecting a subfolder automatically handles all pages within that folder. So you don\u2019t need to set up individual redirect rules for each one.<\/p>\n<p>Here\u2019s the code to add to your .htaccess file:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteRule ^old-folder\/(.*)$ \/new-folder\/$1 [R=301,L]<\/pre>\n<p>Let\u2019s break down the key parts:<\/p>\n<ul>\n<li><strong>RewriteEngine On:<\/strong> Activates Apache\u2019s rewrite module (required for this type of redirect*)<\/li>\n<li><strong>^old-folder\/:<\/strong> Matches the beginning of URLs that start with your old folder<\/li>\n<li><strong>(.*)$:<\/strong> Captures everything after the folder name<\/li>\n<li><strong>\/new-folder\/$1:<\/strong> Sends visitors to the new folder, maintaining the rest of the URL path<\/li>\n<li><strong>[R=301,L]:<\/strong> Specifies a permanent redirect and tells the server to stop processing rules after this match<\/li>\n<\/ul>\n<h3>Subfolder Redirect Example<\/h3>\n<p>Let\u2019s say you have a blog at:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/yoursite.com\/blog\/post-name<\/pre>\n<p>And you want to move it to:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/yoursite.com\/articles\/post-name<\/pre>\n<p>Your redirect code would look like this:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteRule ^blog\/(.*)$ \/articles\/$1  [R=301,L ]<\/pre>\n<p>This will redirect:<\/p>\n<ul>\n<li>\/blog\/first-post to \/articles\/first-post<\/li>\n<li>\/blog\/category\/tech to \/articles\/category\/tech<\/li>\n<li>Any other path that starts with \/blog\/ to the relevant \/articles\/ path<\/li>\n<\/ul>\n<h3>Important: Order Matters<\/h3>\n<p>The order of your .htaccess rules matters. This isn\u2019t going to be an issue if you\u2019re just redirecting a single URL.<\/p>\n<p>But if you want to redirect some parts of a subfolder to one place and others elsewhere, you need to be careful.<\/p>\n<p>Let\u2019s look at an example to make this clearer:<\/p>\n<p>Imagine you have a blog subfolder with a special <strong>\/featured\/<\/strong> section. You want to redirect your <strong>\/blog\/<\/strong> content to an <strong>\/articles\/<\/strong> subfolder, but the featured posts should go to <strong>\/featured-content\/<\/strong>.<\/p>\n<p>Here\u2019s the <strong>WRONG<\/strong> order:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteRule ^blog\/(.*)$ \/articles\/$1 [R=301,L]&#13;\nRewriteRule ^blog\/featured\/(.*)$ \/featured-content\/$1 [R=301,L]<\/pre>\n<p>Why is this incorrect?<\/p>\n<p>Because any time a user (or Google) requests a URL on your site (say, your site.com\/blog\/featured\/your-post\/), Apache first checks if it matches the \/blog\/ structure.<\/p>\n<p>In this case, it does. So it would redirect:<\/p>\n<pre style=\"padding-left: 20px;\">yoursite.com\/blog\/featured\/your-post\/<\/pre>\n<p>To:<\/p>\n<pre style=\"padding-left: 20px;\">yoursite.com\/articles\/your-post\/<\/pre>\n<p>The URL no longer matches the \/blog\/featured\/ structure, so the second rule would never apply to it. Meaning all your featured posts would just redirect to the new \/articles\/ subfolder.<\/p>\n<p>Here\u2019s the correct order:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteRule ^blog\/featured\/(.*)$ \/featured-content\/$1 [R=301,L] &#13;\nRewriteRule ^blog\/(.*)$ \/articles\/$1 [R=301,L]<\/pre>\n<p>This first checks for the \/blog\/featured\/ structure and redirects it to the new \/featured-content\/. So your post at:<\/p>\n<pre style=\"padding-left: 20px;\">yoursite.com\/blog\/featured\/your-post\/<\/pre>\n<p>Would redirect to:<\/p>\n<pre style=\"padding-left: 20px;\">yoursite.com\/featured-content\/your-post\/<\/pre>\n<p>And then in this case it no longer matches the \/blog\/ structure, so the second rule wouldn\u2019t apply. Which is what we want.<\/p>\n<p>For any non-featured blog URLs, like <strong>yoursite.com\/blog\/post-2\/<\/strong>, they\u2019d redirect per the second rule to <strong>yoursite.com\/articles\/post-2\/<\/strong> (because the first rule wouldn\u2019t apply to them without the \/featured\/ part of the URL).<\/p>\n<h3>Redirecting a Subfolder to a Different Domain<\/h3>\n<p>Before I show you how to redirect your entire site to a new domain, it\u2019s worth noting that you can also redirect a subfolder to a completely different domain. This is useful if you\u2019ve moved a section of your site to a new website.<\/p>\n<p>Here\u2019s the rule to use:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteRule ^old-folder\/(.*)$ https:\/\/newdomain.com\/folder\/$1 [R=301,L]<\/pre>\n<p>For example, you could use this if you moved your support section to a dedicated support site:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteRule ^support\/(.*)$ https:\/\/support.yourcompany.com\/$1 [R=301,L]<\/pre>\n<h2>How to Redirect to a New Domain<\/h2>\n<p>Moving to a new domain is a big step. Whether you\u2019re rebranding, switching from a .org to a .com domain, or consolidating multiple websites, you need to make sure your visitors (and search engines) can find your new site.<\/p>\n<p>A domain-wide redirect ensures anyone visiting your old domain automatically lands on your new one. This preserves both the user experience and authority you\u2019ve built up through <a title=\"What Are Backlinks in SEO? &amp; Why You Need Them\" href=\"https:\/\/backlinko.com\/hub\/seo\/backlinks\" target=\"_blank\" rel=\"noopener\">backlinks<\/a>.<\/p>\n<p>Here\u2019s the code to add to your .htaccess file on your old domain:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteCond %{HTTP_HOST} ^(www.)?olddomain.com$ [NC]&#13;\nRewriteRule ^(.*)$ https:\/\/newdomain.com\/$1 [L,R=301]<\/pre>\n<p>Let\u2019s break down what this does:<\/p>\n<ul>\n<li><strong>RewriteEngine On:<\/strong> Activates the rewrite module<\/li>\n<li><strong>RewriteCond %{HTTP_HOST} ^(www.)?olddomain.com$ [NC]<\/strong>: Checks if someone is trying to access your old domain, where:\n<ul>\n<li><strong>^(www.)?:<\/strong> Matches both www and non-www versions of your site<\/li>\n<li><strong>[NC]:<\/strong> Makes the match not case-sensitive (so OLDDOMAIN.com would also match)<\/li>\n<\/ul>\n<\/li>\n<li><strong>RewriteRule ^(.*)$ https:\/\/newdomain.com\/$1 [L,R=301]<\/strong>: Sets up a permanent redirect to the new domain, where:\n<ul>\n<li><strong>^(.*)$:<\/strong> Captures the entire URL path after the domain<\/li>\n<li><strong>https:\/\/newdomain.com\/$1:<\/strong> Redirects to the same path on your new domain<\/li>\n<li><strong>[L,R=301]:<\/strong> Makes it a permanent redirect and stops processing other rules for that request<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Domain Redirect Example<\/h3>\n<p>Let\u2019s say you\u2019re changing from:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/pettraining.com\/dog-care\/grooming<\/pre>\n<p>To:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/pawacademy.com\/dog-care\/grooming<\/pre>\n<p>The redirect will automatically maintain the same path structure. This means visitors to any page on your old domain will land on the corresponding page on your new domain. (You\u2019ll obviously need to have corresponding URLs on the new domain.)<\/p>\n<p>Domain migrations require careful planning. But when you do it properly, they can transfer most of your SEO value and ensure your audience can find your new online home. For more on how to do it right, check out our <a title=\"Website Migration Checklist: Essential SEO Steps for Success\" href=\"https:\/\/backlinko.com\/website-migration-checklist\" target=\"_blank\" rel=\"noopener\">website migration checklist<\/a>.<\/p>\n<h3>Redirect www to Non-www (or Vice Versa) on New Domain<\/h3>\n<p>If you\u2019re also changing from www to non-www (or vice versa) during your domain migration, you can combine these redirects:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\n# First redirect old domain to new domain&#13;\nRewriteCond %{HTTP_HOST} ^(www.)?olddomain.com$ [NC]&#13;\nRewriteRule ^(.*)$ https:\/\/newdomain.com\/$1 [L,R=301]&#13;\n&#13;\n# Then handle www to non-www on new domain&#13;\nRewriteCond %{HTTP_HOST} ^www.newdomain.com$ [NC]&#13;\nRewriteRule ^(.*)$ https:\/\/newdomain.com\/$1 [L,R=301]<\/pre>\n<h2>How to Redirect HTTP to HTTPS<\/h2>\n<p>Redirecting from HTTP to HTTPS isn\u2019t just a good practice \u2014 it\u2019s practically mandatory. HTTPS encrypts the connection between your visitors and your website. This protects sensitive information, while also being a light Google ranking factor.<\/p>\n<p>(I\u2019m not suggesting you redirect to HTTPS for a ranking boost. It really is just the default best practice nowadays more than anything else.)<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__visual-chart backlinko-image\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-300x56.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1280x241.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-768x144.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1536x289.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-2048x385.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-480x90.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-640x120.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-960x180.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1440x271.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1600x301.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1920x361.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"HTTP redirect\" alt=\"HTTP redirect\" data-aspect-ratio=\"0.18857142857143\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-300x56.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1280x241.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-768x144.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1536x289.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-2048x385.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-480x90.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-640x120.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-960x180.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1440x271.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1600x301.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/http-redirect-1920x361.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>If you\u2019ve installed an SSL certificate but visitors can still access your site through unencrypted HTTP, you\u2019ll want to set up a redirect to ensure everyone gets the secure version.<\/p>\n<p>Here\u2019s the code to add to your .htaccess file:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\nRewriteCond %{HTTPS} off&#13;\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&#13;\n<\/pre>\n<p>This is what each part does:<\/p>\n<ul>\n<li><strong>RewriteEngine On:<\/strong> Activates the rewrite module<\/li>\n<li><strong>RewriteCond %{HTTPS} off:<\/strong> Checks if the connection is currently not using HTTPS<\/li>\n<li><strong>^(.*)$:<\/strong> captures the entire URL path<\/li>\n<li><strong>https:\/\/%{HTTP_HOST}%{REQUEST_URI}:<\/strong> Redirects to the same URL but with https:\/\/ instead of http:\/\/<\/li>\n<li><strong>[L,R=301]:<\/strong> Makes it a permanent redirect and stops processing other rules<\/li>\n<\/ul>\n<p>This redirect will change:<\/p>\n<pre style=\"padding-left: 20px;\">http:\/\/yourwebsite.com\/products\/item<\/pre>\n<p>To:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/yourwebsite.com\/products\/item<\/pre>\n<p>The redirect preserves the entire <a title=\"How to Create SEO-Friendly URLs\" href=\"https:\/\/backlinko.com\/hub\/seo\/urls\" target=\"_blank\" rel=\"noopener\">URL structure<\/a> \u2014 only the protocol changes from HTTP to HTTPS.<\/p>\n<p>Unlike other redirects, you don\u2019t need to customize this code with your domain name. The %{HTTP_HOST} variable automatically uses whatever domain the visitor is trying to access.<\/p>\n<p>In other words: you can just copy and paste this in as is.<\/p>\n<p><strong>BUT:<\/strong><\/p>\n<p>Before adding this redirect, make sure:<\/p>\n<ul>\n<li>You have a valid SSL certificate installed on your server<\/li>\n<li>All site resources (images, scripts, etc.) are accessible via HTTPS<\/li>\n<li>Your site functions properly when accessed via HTTPS<\/li>\n<li>Your SSL certificate covers all subdomains if you\u2019re redirecting them to HTTPS as well<\/li>\n<\/ul>\n<p>And most importantly: <strong>make sure you don\u2019t already have a method in place to force HTTPS<\/strong>, as this can cause redirect loops and other potential performance issues.<\/p>\n<p>While .htaccess is one way to implement HTTPS redirects, you may have other options (perhaps ones that are already doing this for you):<\/p>\n<ul>\n<li><strong>Hosting control panel:<\/strong> Many hosting providers offer one-click HTTPS enforcement through their control panel (maybe even doing it by default)<\/li>\n<li><strong>WordPress settings:<\/strong> If you\u2019re using WordPress, check the \u201cWordPress Address\u201d and \u201cSite Address\u201d settings under Settings &gt; General (both should start with https:\/\/)<\/li>\n<li><strong>Plugin solutions:<\/strong> WordPress plugins like Really Simple SSL can handle the redirect for you<\/li>\n<\/ul>\n<h2>How to Redirect WWW to Non-WWW<\/h2>\n<p>Should your website be <strong>www.yoursite.com<\/strong> or just <strong>yoursite.com<\/strong>? This seemingly small detail actually matters a lot for consistency, user experience, and SEO.<\/p>\n<p>Having both versions accessible can create <a title=\"Duplicate Content and SEO: The Complete Guide\" href=\"https:\/\/backlinko.com\/hub\/seo\/duplicate-content\" target=\"_blank\" rel=\"noopener\">duplicate content issues<\/a>. So you should pick one format and redirect the other to it.<\/p>\n<p>In most cases, there\u2019s no definitive technical advantage to either format.<\/p>\n<p>But non-WWW is shorter, cleaner, and easier to say in conversation.<\/p>\n<p>Most modern websites lean toward the non-www version, but either choice is fine as long as you\u2019re consistent.<\/p>\n<p>Let\u2019s look at how to redirect the www version to the non-www version (then I\u2019ll show you how to reverse this if you prefer www).<\/p>\n<p>Here\u2019s the code to add to your .htaccess file:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]&#13;\n&#13;\nRewriteRule ^(.*)$ https:\/\/%1\/$1 [L,R=301]<\/pre>\n<p>Breaking this down:<\/p>\n<ul>\n<li><strong>RewriteEngine On:<\/strong> Activates the rewrite module<\/li>\n<li><strong>RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]:<\/strong> Checks if the URL starts with \u201cwww\u201d where:\n<ul>\n<li><strong>(.*)$:<\/strong> Captures the domain name without the www<\/li>\n<li><strong>^(.*)$:<\/strong> Captures the entire path after the domain<\/li>\n<\/ul>\n<\/li>\n<li><strong>https:\/\/%1\/$1:<\/strong> Redirects to the same URL without www where:\n<ul>\n<li><strong>%1:<\/strong> Refers to the domain captured in the RewriteCond<\/li>\n<li><strong>$1:<\/strong> Refers to the page path<\/li>\n<\/ul>\n<\/li>\n<li><strong>[L,R=301]:<\/strong> Makes it a permanent redirect and stops processing other rules<\/li>\n<\/ul>\n<p>This redirect will change:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/www.yourbusiness.com\/about-us<\/pre>\n<p>To:<\/p>\n<pre style=\"padding-left: 20px;\">https:\/\/yourbusiness.com\/about-us<\/pre>\n<h3>What About Non-WWW to WWW?<\/h3>\n<p>If you prefer the www version instead, simply reverse the logic (you need an extra RewriteCond line as well):<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteCond %{HTTP_HOST} !^www. [NC]&#13;\n&#13;\nRewriteCond %{HTTP_HOST} ^(.*)$ [NC]&#13;\n&#13;\nRewriteRule ^(.*)$ https:\/\/www.%1\/$1 [L,R=301]<\/pre>\n<p>This checks if the URL does NOT start with www and then adds it.<\/p>\n<p>This is another rule you can simply copy and paste into your .htaccess file. But as with HTTP redirects, you need to make sure you\u2019re not already redirecting via another method. Otherwise you might run into redirect loops and other issues.<\/p>\n<p>Outside of your .htaccess file, you can force www\/non-www via:<\/p>\n<ul>\n<li><strong>DNS settings:<\/strong> Some DNS providers let you set a preferred version when configuring your domain<\/li>\n<li><strong>Hosting control panel:<\/strong> Many hosts offer settings to enforce www or non-www<\/li>\n<li><strong>WordPress settings:<\/strong> In WordPress, check the \u201cWordPress Address\u201d and \u201cSite Address\u201d fields under Settings &gt; General (both should use your preferred format)<\/li>\n<\/ul>\n<p>Make sure to test all versions of your domain to ensure they all lead to your preferred version:<\/p>\n<ul>\n<li>http:\/\/yoursite.com<\/li>\n<li>http:\/\/www.yoursite.com<\/li>\n<li>https:\/\/yoursite.com<\/li>\n<li>https:\/\/www.yoursite.com<\/li>\n<\/ul>\n<p>All four should ultimately end up at the same place (ideally https:\/\/yoursite.com if you\u2019re going with non-www, or https:\/\/www.yoursite.com if you prefer www).<\/p>\n<h2>Other Types of .htaccess Redirect<\/h2>\n<p>While the above covers the most common .htaccess redirect scenarios, the file is incredibly versatile and can handle many other specialized redirect situations.<\/p>\n<p>Let\u2019s explore some other redirect types that might come in handy for specific use cases.<\/p>\n<h3>Redirect Based on Query Parameters<\/h3>\n<p>Sometimes you need to redirect based on what appears after the question mark in a URL. These are <a title=\"URL Parameters: What They Are and How to Use Them Properly\" href=\"https:\/\/backlinko.com\/url-parameters\" target=\"_blank\" rel=\"noopener\">URL parameters<\/a>, and they\u2019re useful for tracking and organizing site content.<\/p>\n<p>Here\u2019s an example .htaccess redirect rule for managing URL parameters (also known as query strings):<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteCond %{QUERY_STRING} ^product=widget$&#13;\n&#13;\nRewriteRule ^products.php$ \/widgets\/? [L,R=301]<\/pre>\n<p>This redirects \/products.php?product=widget to \/widgets\/ while removing the query string.<\/p>\n<p>The question mark at the end of the destination URL tells the server to strip the original query parameters rather than passing them along.<\/p>\n<h3>Redirect to a Specific Port<\/h3>\n<p>If you need to redirect to a different port (like for a development environment), use this rule:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteRule ^dev\/(.*)$ http:\/\/localhost:8080\/$1 [L,R=301]<\/pre>\n<p>This would redirect requests for \/dev\/page to http:\/\/localhost:8080\/page.<\/p>\n<h3>Custom Error Page Redirects<\/h3>\n<p>You can set up custom pages for various HTTP error codes.<\/p>\n<p>For example, you can send users and search engines to dedicated error pages:<\/p>\n<pre style=\"padding-left: 20px;\">ErrorDocument 404 \/custom-404&#13;\n&#13;\nErrorDocument 500 \/server-error<\/pre>\n<p>While these aren\u2019t technically redirects (they\u2019re error handlers), they help provide a better user experience when things go wrong.<\/p>\n<h3>Temporary vs. Permanent Redirects<\/h3>\n<p>We\u2019ve mostly covered 301 (permanent) redirects, but 302 (temporary) redirects are useful for:<\/p>\n<ul>\n<li>Maintenance pages<\/li>\n<li>Seasonal promotions<\/li>\n<li>A\/B testing<\/li>\n<\/ul>\n<p>To create a temporary redirect, simply change the 301 to 302:<\/p>\n<pre style=\"padding-left: 20px;\">Redirect 302 \/sale \/summer-sale<\/pre>\n<p>When using temporary redirects for maintenance, you can create a rule that excludes your IP address so you can still access the original page:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteCond %{REMOTE_ADDR} !^123.456.789.0&#13;\n&#13;\nRewriteRule ^(.*)$ \/maintenance [R=302,L]<\/pre>\n<p>Where 123.456.789.0 is your IP address.<\/p>\n<h3>Redirecting Specific File Types<\/h3>\n<p>You can also redirect requests for specific file types, like PDFs:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteRule ^(.*).pdf$ \/documents\/$1.pdf [L,R=301]<\/pre>\n<p>This moves all PDF files to a \/documents\/ folder.<\/p>\n<h3>Redirect to Force Trailing Slash<\/h3>\n<p>For consistency, you might want all URLs to either have or not have a trailing slash:<\/p>\n<pre style=\"padding-left: 20px;\">RewriteEngine On&#13;\n&#13;\nRewriteCond %{REQUEST_FILENAME} !-f&#13;\n&#13;\nRewriteRule ^(.*[^])$ \/$1\/ [L,R=301]<\/pre>\n<p>This adds a trailing slash to all URLs that don\u2019t represent actual files.<\/p>\n<h2>Htaccess Redirects Symbols Explained (+ Cheat Sheet)<\/h2>\n<p>The symbols in .htaccess redirects can look cryptic at first glance. Those carets, dollar signs, and brackets serve important purposes that aren\u2019t immediately obvious.<\/p>\n<p>Rather than trying to learn what they all do, below is a handy reference you can return to whenever you need to create or modify your redirects.<\/p>\n<h3>Common .htaccess Symbols<\/h3>\n<div class=\"table-responsive\">\n<table class=\"table table-primary table-striped table-hover\">\n<tbody>\n<tr>\n<th scope=\"col\">Symbol<\/th>\n<th scope=\"col\">Name<\/th>\n<th scope=\"col\">What It Does<\/th>\n<th scope=\"col\">Example<\/th>\n<\/tr>\n<\/tbody>\n<tbody>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">^<\/td>\n<td data-before=\"Name\">Caret<\/td>\n<td data-before=\"What It Does\">Matches the beginning of a string<\/td>\n<td data-before=\"Example\">^blog matches URLs that start with \u201cblog\u201d<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">$<\/td>\n<td data-before=\"Name\">Dollar sign<\/td>\n<td data-before=\"What It Does\">Matches the end of a string<\/td>\n<td data-before=\"Example\">.html$ matches URLs that end with \u201c.html\u201d<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">()<\/td>\n<td data-before=\"Name\">Parentheses<\/td>\n<td data-before=\"What It Does\">Groups patterns and captures matched content<\/td>\n<td data-before=\"Example\">(.*?) captures content to be used later<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">$1, $2\u2026<\/td>\n<td data-before=\"Name\">Dollar sign with number<\/td>\n<td data-before=\"What It Does\">References captured groups in RewriteRule<\/td>\n<td data-before=\"Example\">\/$1.html inserts the first captured group<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">%1, %2\u2026<\/td>\n<td data-before=\"Name\">Percent with number<\/td>\n<td data-before=\"What It Does\">References captured groups in RewriteCond<\/td>\n<td data-before=\"Example\">https:\/\/%1 uses the domain captured in a condition<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">.<\/td>\n<td data-before=\"Name\">Period<\/td>\n<td data-before=\"What It Does\">Matches any single character<\/td>\n<td data-before=\"Example\">a.c matches \u201cabc\u201d, \u201cadc\u201d, etc.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">*<\/td>\n<td data-before=\"Name\">Asterisk<\/td>\n<td data-before=\"What It Does\">Matches zero or more of the preceding character<\/td>\n<td data-before=\"Example\">a* matches \u201c\u201d, \u201ca\u201d, \u201caa\u201d, \u201caaa\u201d, etc.<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">+<\/td>\n<td data-before=\"Name\">Plus<\/td>\n<td data-before=\"What It Does\">Matches one or more of the preceding character<\/td>\n<td data-before=\"Example\">a+ matches \u201ca\u201d, \u201caa\u201d, \u201caaa\u201d, etc. (but not \u201c\u201d)<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">?<\/td>\n<td data-before=\"Name\">Question mark<\/td>\n<td data-before=\"What It Does\">Makes the preceding character optional<\/td>\n<td data-before=\"Example\">colou?r matches both \u201ccolor\u201d and \u201ccolour\u201d<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">[<\/td>\n<td data-before=\"Name\">Square brackets<\/td>\n<td data-before=\"What It Does\">Contains flags or defines a character set<\/td>\n<td data-before=\"Example\">[L,R=301] sets flags; [a-z] matches lowercase letters<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\"\/>\n<td data-before=\"Name\">Backslash<\/td>\n<td data-before=\"What It Does\">Escapes special characters<\/td>\n<td data-before=\"Example\">. matches a literal period rather than any character<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Symbol\">|<\/td>\n<td data-before=\"Name\">Pipe<\/td>\n<td data-before=\"What It Does\">Acts as OR operator<\/td>\n<td data-before=\"Example\">cat|dog matches \u201ccat\u201d or \u201cdog\u201d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>Flag Options<\/h3>\n<div class=\"table-responsive\">\n<table class=\"table table-primary table-striped table-hover\">\n<thead>\n<tr>\n<th scope=\"col\">Flag<\/th>\n<th scope=\"col\">Full Name<\/th>\n<th scope=\"col\">Purpose<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">L<\/td>\n<td data-before=\"Full Name\">Last<\/td>\n<td data-before=\"Purpose\">Stops processing rules if this one matches<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">R=301<\/td>\n<td data-before=\"Full Name\">Redirect (301)<\/td>\n<td data-before=\"Purpose\">Creates a permanent redirect<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">R=302<\/td>\n<td data-before=\"Full Name\">Redirect (302)<\/td>\n<td data-before=\"Purpose\">Creates a temporary redirect<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">NC<\/td>\n<td data-before=\"Full Name\">No Case<\/td>\n<td data-before=\"Purpose\">Makes the match case-insensitive<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">QSA<\/td>\n<td data-before=\"Full Name\">Query String Append<\/td>\n<td data-before=\"Purpose\">Adds query parameters from the original URL<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">F<\/td>\n<td data-before=\"Full Name\">Forbidden<\/td>\n<td data-before=\"Purpose\">Returns a 403 Forbidden status<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">G<\/td>\n<td data-before=\"Full Name\">Gone<\/td>\n<td data-before=\"Purpose\">Returns a 410 Gone status (resource permanently removed)<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Flag\">PT<\/td>\n<td data-before=\"Full Name\">Pass Through<\/td>\n<td data-before=\"Purpose\">Passes the request to other modules for further processing<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>RewriteCond Variables<\/h3>\n<div class=\"table-responsive\">\n<table class=\"table table-primary table-striped table-hover\">\n<thead>\n<tr>\n<th scope=\"col\">Variable<\/th>\n<th scope=\"col\">What It Contains<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{HTTP_HOST}<\/td>\n<td data-before=\"What It Contains\">Domain name from the request (e.g., example.com)<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{REQUEST_URI}<\/td>\n<td data-before=\"What It Contains\">The path part of the URL (e.g., \/folder\/page\/)<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{QUERY_STRING}<\/td>\n<td data-before=\"What It Contains\">Everything after the ? in a URL<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{REQUEST_FILENAME}<\/td>\n<td data-before=\"What It Contains\">The full path to the requested file<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{HTTP_USER_AGENT}<\/td>\n<td data-before=\"What It Contains\">Information about the visitor\u2019s browser<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{HTTPS}<\/td>\n<td data-before=\"What It Contains\">\u201con\u201d if the connection is secure, \u201coff\u201d otherwise<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\" data-before=\"Variable\">%{REMOTE_ADDR}<\/td>\n<td data-before=\"What It Contains\">The visitor\u2019s IP address<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3>Pattern Matching Examples<\/h3>\n<p>Here are a few examples of the kinds of rules you can set up once you get the hang of all the symbols, flags, and variables:<\/p>\n<h4>URL Paths<\/h4>\n<ul>\n<li><strong>^about$<\/strong> matches ONLY the exact URL \u201c\/about\u201d (not \u201c\/about-us\u201d or \u201c\/about\/team\u201d)<\/li>\n<li><strong>^about(.*)<\/strong> matches \u201c\/about\u201d plus anything after it (\u201c\/about-us\u201d, \u201c\/about\/team\u201d, etc.)<\/li>\n<\/ul>\n<h4>File Types<\/h4>\n<ul>\n<li><strong>.(pdf|docx|xlsx)$<\/strong> matches URLs ending in .pdf, .docx, or .xlsx (for specific file handling)<\/li>\n<li><strong>^((?!.html).)*$<\/strong> matches any URL that does NOT end with .html (for handling non-HTML requests)<\/li>\n<\/ul>\n<h4>Flag Variations<\/h4>\n<ul>\n<li><strong>RewriteRule ^blog\/(.*)$ \/articles\/$1 [R=301,L]<\/strong> creates a permanent (301) redirect that browsers and search engines will cache<\/li>\n<li><strong>RewriteRule ^blog\/(.*)$ \/articles\/$1 [R=302,L]<\/strong> creates a temporary (302) redirect that won\u2019t be permanently cached by browsers (useful during site testing)<\/li>\n<\/ul>\n<h4>Variable Conditions<\/h4>\n<ul>\n<li><strong>RewriteCond %{HTTP_HOST} example.com<\/strong> matches requests specifically to example.com (case-sensitive, excludes www.example.com)<\/li>\n<li><strong>RewriteCond %{REQUEST_URI} ^\/blog\/articles<\/strong> matches URLs with path exactly \u201c\/blog\/articles\u201d (this is case-sensitive on many servers)<\/li>\n<\/ul>\n<h2>How to Check Your Redirects Are Working<\/h2>\n<p>You\u2019ve done the hard work, so let\u2019s now find out how to make sure you\u2019ve set it all up correctly.<\/p>\n<p>Below are a few ways to check your redirects. The best one depends on the nature of your redirects and how many you\u2019ve set up.<\/p>\n<h3>Manual Testing<\/h3>\n<p>The simplest way to test your redirects is to manually check them in your browser.<\/p>\n<p>Just enter the old URL you\u2019ve redirected and watch the address bar to see if it changes to the new URL.<\/p>\n<p>For a more detailed view of what\u2019s happening, use your browser\u2019s developer tools:<\/p>\n<ol>\n<li>Open developer tools (F12 in most browsers, or right click then \u201c<strong>Inspect<\/strong>\u201d) on the redirected page<\/li>\n<li>Go to the \u201c<strong>Network<\/strong>\u201d tab<\/li>\n<li>Reload the page and look for the redirect chain and status codes<\/li>\n<\/ol>\n<p>In the example below, you can see it has redirected from the URL \/position to \/positioning:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-300x203.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1280x867.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-768x520.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1536x1040.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-2048x1387.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-480x325.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-640x433.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-960x650.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1440x975.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1600x1084.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1920x1300.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"Backlinko Hub \u2013 Positioning \u2013 Redirect\" alt=\"Backlinko Hub \u2013 Positioning \u2013 Redirect\" data-aspect-ratio=\"0.67714285714286\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-300x203.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1280x867.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-768x520.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1536x1040.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-2048x1387.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-480x325.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-640x433.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-960x650.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1440x975.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1600x1084.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/backlinko-hub-positioning-redirect-1920x1300.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<h3>Online Redirect Checkers<\/h3>\n<p>Several free tools can test your redirects and provide more technical details. One example is <a title=\"HTTP Status Code Checker\" href=\"https:\/\/httpstatus.io\/\" target=\"_blank\" rel=\"noopener\">HTTP Status Code Checker<\/a>.<\/p>\n<p>These tools show you the entire redirect path, status codes, and how long each redirect takes to process:<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-300x252.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1280x1075.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-768x645.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1536x1290.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-2048x1720.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-480x403.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-640x538.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-960x806.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1440x1210.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1600x1344.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1920x1613.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"HTTP Status \u2013 URL status check\" alt=\"HTTP Status \u2013 URL status check\" data-aspect-ratio=\"0.84\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-300x252.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1280x1075.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-768x645.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1536x1290.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-2048x1720.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-480x403.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-640x538.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-960x806.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1440x1210.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1600x1344.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2024\/07\/httpstatus-url-status-check-1920x1613.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<h3>Testing Multiple URLs<\/h3>\n<p>If you\u2019ve set up many redirects (like a subfolder or domain-wide redirect), testing every URL manually isn\u2019t practical.<\/p>\n<p>The HTTP Status Code Checker tool does let you test multiple URLs\u2026<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-300x207.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1280x883.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-768x530.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1536x1060.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-2048x1413.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-480x331.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-640x442.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-960x662.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1440x994.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1600x1104.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1920x1325.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"Httpstatus \u2013 Homepage\" alt=\"Httpstatus \u2013 Homepage\" data-aspect-ratio=\"0.69\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-300x207.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1280x883.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-768x530.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1536x1060.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-2048x1413.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-480x331.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-640x442.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-960x662.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1440x994.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1600x1104.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/httpstatus-homepage-1920x1325.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>But this won\u2019t be suitable for entire site redirects or when you have hundreds (or thousands) of redirects set up.<\/p>\n<p>You could use a crawling tool and compare the crawl results to your sitemap, but that\u2019s still going to be quite tedious.<\/p>\n<p>Instead, consider using a tool like Semrush\u2019s <a title=\"Site Audit: Improve the SEO of Your Website | Semrush\" href=\"https:\/\/www.semrush.com\/siteaudit\/?utm_campaign=htaccess-redirect&amp;utm_source=backlinko.com&amp;utm_medium=referral\" target=\"_blank\" rel=\"noopener\">Site Audit<\/a>.<\/p>\n<p>Just pop your domain in, let the audit run, and then go to the \u201c<strong>Issues<\/strong>\u201d tab. Type in \u201credirect\u201d to flag relevant issues.<\/p>\n<figure style=\"max-width: 700px\" class=\"backlinko-image__screenshot backlinko-image backlinko-has-border\"><picture><source type=\"image\/webp\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect.webp 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-300x224.webp 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1280x956.webp 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-768x574.webp 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1536x1148.webp 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-2048x1530.webp 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-480x359.webp 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-640x478.webp 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-960x717.webp 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1440x1076.webp 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1600x1196.webp 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1920x1435.webp 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\"><img decoding=\"async\" style=\"max-width: 700px !important\" title=\"Site Audit \u2013 Backlinko \u2013 Issues \u2013 Redirect\" alt=\"Site Audit \u2013 Backlinko \u2013 Issues \u2013 Redirect\" data-aspect-ratio=\"0.74714285714286\" src=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect.png\" srcset=\"https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect.png 2500w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-300x224.png 300w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1280x956.png 1280w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-768x574.png 768w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1536x1148.png 1536w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-2048x1530.png 2048w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-480x359.png 480w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-640x478.png 640w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-960x717.png 960w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1440x1076.png 1440w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1600x1196.png 1600w, https:\/\/api.backlinko.com\/app\/uploads\/2025\/04\/site-audit-backlinko-issues-redirect-1920x1435.png 1920w\" sizes=\"(max-width: 700px) 100vw, 700px\" loading=\"lazy\"\/><\/source><\/picture><\/figure>\n<p>In particular, look out for:<\/p>\n<ul>\n<li><strong># incorrect pages found in sitemap.xml:<\/strong> This will highlight any of your pages in your sitemap that are redirecting elsewhere<\/li>\n<li><strong># pages have a WWW resolve issue:<\/strong> This will highlight issues if you haven\u2019t specified which version (www or non-www) you prefer (e.g., via .htaccess redirects)<\/li>\n<li><strong>No redirect or canonical to HTTPS homepage from HTTP version:<\/strong> This checks if your homepage is set up to serve the secure HTTPS version<\/li>\n<li><strong># redirect chains and loops:<\/strong> These create a bad user experience and can impact your SEO<\/li>\n<li><strong># URLs with a temporary redirect:<\/strong> Double check these redirects are indeed meant to be temporary<\/li>\n<li><strong># URLs with a permanent redirect:<\/strong> Check these URLs are supposed to redirect, and make sure they redirect to the correct place<\/li>\n<\/ul>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Whenever you move content, change domain names, or simply tweak a page\u2019s URL, you\u2019ll likely use a redirect. This ensures your users (and Google) get to the right page, and it preserves the SEO value from your backlinks. You can use .htaccess redirects specifically to do this. But I get that messing with your site\u2019s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":239095,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98],"tags":[35386,3608,11514,7957,88160],"dealstore":[],"offerexpiration":[],"class_list":["post-239094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-marketing","tag-htaccess","tag-cases","tag-common","tag-create","tag-redirects"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create .htaccess Redirects (Most Common Use Cases) - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=239094\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create .htaccess Redirects (Most Common Use Cases) - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Whenever you move content, change domain names, or simply tweak a page\u2019s URL, you\u2019ll likely use a redirect. This ensures your users (and Google) get to the right page, and it preserves the SEO value from your backlinks. You can use .htaccess redirects specifically to do this. But I get that messing with your site\u2019s [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=239094\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-13T03:29:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2500\" \/>\n\t<meta property=\"og:image:height\" content=\"1400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"23 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=239094#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=239094\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"How to Create .htaccess Redirects (Most Common Use Cases)\",\"datePublished\":\"2025-05-13T03:29:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=239094\"},\"wordCount\":4254,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=239094#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png\",\"keywords\":[\".htaccess\",\"Cases\",\"Common\",\"create\",\"Redirects\"],\"articleSection\":[\"Marketing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=239094#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=239094\",\"url\":\"https:\/\/fivemor.com\/?p=239094\",\"name\":\"How to Create .htaccess Redirects (Most Common Use Cases) - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=239094#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=239094#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png\",\"datePublished\":\"2025-05-13T03:29:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=239094#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=239094\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=239094#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png\",\"width\":2500,\"height\":1400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=239094#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create .htaccess Redirects (Most Common Use Cases)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create .htaccess Redirects (Most Common Use Cases) - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=239094","og_locale":"en_US","og_type":"article","og_title":"How to Create .htaccess Redirects (Most Common Use Cases) - Som2ny Network","og_description":"Whenever you move content, change domain names, or simply tweak a page\u2019s URL, you\u2019ll likely use a redirect. This ensures your users (and Google) get to the right page, and it preserves the SEO value from your backlinks. You can use .htaccess redirects specifically to do this. But I get that messing with your site\u2019s [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=239094","og_site_name":"Som2ny Network","article_published_time":"2025-05-13T03:29:59+00:00","og_image":[{"width":2500,"height":1400,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"23 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=239094#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=239094"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"How to Create .htaccess Redirects (Most Common Use Cases)","datePublished":"2025-05-13T03:29:59+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=239094"},"wordCount":4254,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=239094#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png","keywords":[".htaccess","Cases","Common","create","Redirects"],"articleSection":["Marketing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=239094#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=239094","url":"https:\/\/fivemor.com\/?p=239094","name":"How to Create .htaccess Redirects (Most Common Use Cases) - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=239094#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=239094#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png","datePublished":"2025-05-13T03:29:59+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=239094#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=239094"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=239094#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/htaccess-redirect-featured-image.png","width":2500,"height":1400},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=239094#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"How to Create .htaccess Redirects (Most Common Use Cases)"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/239094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239094"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/239094\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/239095"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239094"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=239094"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=239094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}