You just need to specify the old URL path and the new URL path for a 301 Htaccess redirect. To accomplish this, I found that it was best to create an Excel spreadsheet with at most two columns. Columnar by placing old pages in the first column, followed by fresh pages in the second column, etc. Your Htaccess redirect code 301 will be generated once you copy and paste the cells from your spreadsheet into the form below.
Once you have put your old page into the new page field, click on the "create" button to produce new pages. It is not necessary to state that you should click or refresh your web page to see whether it is redirecting, and if not, you should check the URL you provided. If you alter the content of your ht-access file and get a 500 error, delete the latest code you added to fix the problem. In addition, you may use this application to produce codes to ban bad bot IP addresses and malicious users. Turning file caching, picture caching, and site compression on and off is very easy with the Htaccess generating tool.
As one of the most popular and widely used tools for handling redirection, the Htaccess Redirect Code Generator is free to use. To build Htaccess redirect code for your website, follow these four simple steps.
1/ Select the redirect type
Redirect from www to non-www
Redirect from non-www to www
2/ Enter your domain URL into the text box.
3/ Click on the "Get .htaccess code" button
4/ Copy your code and place it by the guidance below:
These files are placed in the root directory of your web server or in any other location where you want to give specific control directives for your website. On a web server, for example, you could wish to restrict access to certain directories and reroute traffic to those sites. To redirect these prospective clients in various ways, this site will build the rewrite rule syntax parameter for usage in the .htaccess file. Keeping in mind that this is an important system file, any errors in its syntax might render it useless for visitors. Always have a copy of your old .htaccess on hand.