htaccess Redirect Generator
Developer ToolsCreate 301/302 redirect rules for Apache
Embed this tool on your websiteFree
- Choose how tall the frame should be.
- Press Copy code.
- Paste it into your page, blog, WordPress or Notion HTML block.
The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.
Similar tools you may like
History
All history →htaccess Redirect Generator — at a glance
Send visitors and Google from an old URL to a new one without losing your rankings.
How to use it — step by step
One redirect per line: the old path, a space, then the new path or full URL.
Paste your input
Paste or type your content into the big input box.
Choose options
Pick the mode and options that fit what you need.
Generate Rules
Press the button. The result is created instantly on your device.
Copy the result
Check the output and press Copy to use it anywhere.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
What is htaccess Redirect Generator?+
Generate .htaccess redirect rules for Apache. Paste old and new paths (one pair per line), choose 301 permanent or 302 temporary and add an optional HTTPS and www redirect.
How do I use htaccess Redirect Generator?+
Open htaccess Redirect Generator on this page, then: 1. Paste your input 2. Choose options 3. Generate Rules 4. Copy the result. Everything runs in your browser on a phone or computer.
Is htaccess Redirect Generator free to use?+
Yes. htaccess Redirect Generator on Toolcloak is free, needs no signup and has no hidden limits.
Does this work on Netlify or Vercel?+
No. .htaccess is for Apache servers. Netlify and Vercel use their own redirect settings.
301 or 302?+
301 tells search engines the move is permanent. Use 302 only for temporary changes.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Also searched as: htaccess redirect generator · 301 redirect htaccess · apache redirect rules · htaccess generator · online htaccess redirect generator free · htaccess redirect generator website

