.htaccess redirect generator
Generate clean 301 or 302 redirect rules for Apache .htaccess from a list of old and new URLs.
Redirects
| Old URL / path | New URL | Type |
|---|
.htaccess output
Advertisement
100% private. All processing happens locally in your browser — no files or data are ever sent to a server.
How to use .htaccess redirect generator
- 01 Paste or type your input into the text field provided
- 02 The output generates instantly as you type
- 03 Click Copy to send the result straight to your clipboard
Frequently asked questions
Common questions about .htaccess redirect generator.
Is .htaccess redirect generator free to use?
Does .htaccess redirect generator upload my data to a server?
Can I use .htaccess redirect generator on my phone or tablet?
Does .htaccess redirect generator work without an internet connection?
Advertisement
More Developer tools
About .htaccess redirect generator
Apache .htaccess files control directory-level configuration on Apache web servers, and are widely used to implement URL redirects without modifying application code. A 301 redirect is permanent and passes full SEO authority to the new URL; a 302 redirect is temporary and does not transfer link equity. The .htaccess Redirect Generator turns a list of old URL → new URL pairs into properly formatted RewriteRule directives, ready to paste into your .htaccess file. It handles both simple path redirects and full URL redirects, and outputs the correct RewriteEngine On directive as a header.
Advertisement