↪
.htaccess Redirect Generator
301/302 redirect rules for Apache from a simple list.
Runs entirely in your browser. Nothing is sent anywhere.
How it works
- 1Paste or type your text.
- 2Choose the options you need.
- 3Copy or download the result.
About this tool
.htaccess Redirect Generator: 301/302 redirect rules for Apache from a simple list. Paste your text and the result appears immediately, ready to copy or download. Everything happens locally in your browser — nothing you paste is uploaded or stored.
Example
Input
/old-page.html /new-page/ /blog/2019/post /articles/post /shop https://shop.example.com/
Output
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]
Redirect 301 /old-page.html /new-page/
Redirect 301 /blog/2019/post /articles/post
Redirect 301 /shop https://shop.example.com/
How do I use the .htaccess Redirect Generator?
Paste or type your text. Choose the options you need. Copy or download the result.
Is the .htaccess Redirect Generator free?
Yes. It is completely free with no sign-up, no usage limits and no watermark.
Is my data sent to a server?
No. Everything is calculated locally in your browser. Nothing you enter is uploaded, logged or stored.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux — no app needed.