Generate .htaccess 301 redirects, force HTTPS and www/non-www rules for Apache and LiteSpeed.
What is the .htaccess Redirect Generator?
Moving pages or switching to HTTPS? A 301 redirect sends visitors and Google from the old URL to the new one and keeps your rankings. This tool writes the .htaccess rules for page redirects, HTTPS and www or non-www – ready for Apache and LiteSpeed hosting like Hostinger.
How to use the .htaccess Redirect Generator
- Enter your domain and choose HTTPS and www options.
- Add old and new URLs, one pair per line.
- Copy the code into the .htaccess file in public_html.
Frequently asked questions
301 or 302?
Use 301 for permanent moves so SEO value passes to the new page. Use 302 only for short-term changes.
Should I back up .htaccess first?
Yes. Always keep a copy – a mistake can make your site show an error.
This .htaccess redirect generator is 100% free, needs no signup and runs in your browser, so your data stays private.
Last updated: · By NodifyTech