What is the Htaccess Redirect Generator?
Redirects keep visitors and search rankings when addresses change. On Apache servers (including most cPanel hosting) they live in the .htaccess file.
Pick what you need: force HTTPS, choose www or non-www, and list old pages with their new addresses. The tool writes the rules in the right order, ready to paste.
Features
Force HTTPS
Send every visitor to the secure version of your site.
www or non-www
Pick one version so search engines do not see duplicates.
301 page redirects
Move old pages to new ones and keep their value.
How to use the Htaccess Redirect Generator
- 1
Enter your domain and the main form.
- 2
List any old pages and where they moved.
- 3
Paste the rules at the top of .htaccess and test a few addresses.
Who it is for
Site moves
Changed page addresses or moved to a new structure.
SSL setup
Just installed a certificate and want everyone on HTTPS.
Tips for better results
- Always keep a backup of your current .htaccess before you paste new rules.
- Use 301 for permanent moves and 302 only for short-term changes.
Questions people ask
Will a 301 redirect lose SEO value?
A proper 301 passes almost all of the old page's value to the new address.
301 or 302?
301 says the move is for good and passes the page's ranking to the new address. These rules use 301.