The htaccess redirects generator tool is designed to be used when implementing URL changes, performing Web migrations, or configuring your Website's canonical URLs versions. Canonical URLs are URLs that are intended to be indexed and ranked, and using this tool will allow you to avoid losing traffic and rankings from your former or non-canonical URLs by referring your users and search bots to their new or canonical URLs versions via permanent redirects. (with a status of 301 in HTTP).
The purpose of the generator is to simplify the process of implementing the most frequent Web redirect scenarios by utilizing htaccess. It does this by producing the appropriate rewrite code, which must then be placed into your htaccess file if you are running Apache as your web server.
Make a backup copy of your htaccess code before making any changes to it, just in case something goes wrong. Once you've made the changes, double-check that the redirected URLs are actually going to the correct location with the correct 301 HTTP status.
You can generate a personalized redirect code based on your input by selecting the appropriate redirect scenario and then copying and pasting the generated code into your htaccess file. If you would like me to include another reroute situation, do let me know by leaving me a note over on this side of the forum.