.htaccess Redirect Generator
Generate Apache mod_rewrite 301 or 302 redirect rules for .htaccess files.
Paths should start with /. Rules use Apache mod_rewrite.
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.
Related tools
QR Code Generator
Generate QR codes from text or URLs. Download as PNG or SVG.
JSON Formatter
Format, validate, and minify JSON with clear error messages.
Base64 Encoder / Decoder
Encode and decode text or images to Base64. Works entirely offline.
Color Picker
Pick a color and convert between HEX, RGB, and HSL formats.