.htaccess Redirect Generator
Place the generated lines above the # BEGIN WordPress block in your .htaccess file. Always back up before editing.
Frequently asked questions
What is the difference between a 301 and a 302 redirect?
A 301 redirect signals that a page has moved permanently to a new URL. Search engines transfer the majority of ranking authority to the new URL. A 302 redirect signals a temporary move; search engines keep the original URL indexed and do not pass link equity to the destination.
How do I add a redirect to my .htaccess file?
Open your site's .htaccess file (located in the WordPress root, the same directory as wp-config.php), paste the generated Redirect lines above the "# BEGIN WordPress" block, and save. Always create a backup of the file before making any edits.
Will these redirect rules work with WordPress?
Yes. The generated rules use Apache's mod_alias Redirect directive, which works alongside WordPress's mod_rewrite rules. Place the redirect lines above the "# BEGIN WordPress" block in your .htaccess file to ensure they take precedence.