.htaccess Redirect Generator
Generate Apache mod_rewrite 301 or 302 redirect rules for .htaccess files.
Runs locally — nothing is uploaded
How to use
- 1
Set paths
Enter the old and new URL paths.
- 2
Pick redirect type
Choose 301 permanent or 302 temporary.
- 3
Copy rules
Paste into your .htaccess file.
Frequently Asked Questions
These are Apache mod_rewrite rules. Nginx uses a different syntax.
Rules match optional trailing slashes on the source path.
Pick permanent (301) or temporary (302) before copying the rule.
Old and new URL paths — the tool outputs ready-to-paste .htaccess lines.
Related tools
QR Code Generator
Create styled QR codes for links, Wi‑Fi, contacts, and more. Logo and colors stay in your browser.
Developer Tools
Barcode Generator
Generate CODE128, EAN13, UPC, and CODE39 barcodes from text. Download as PNG.
Developer Tools
JSON Formatter
Format, validate, and minify JSON with clear error messages.
Developer Tools
Base64 Encoder / Decoder
Encode and decode text or images to Base64. Works entirely offline.
Developer Tools