Technical SEO Files · Runs in your browser · Free
Redirect Rule Generator
Generate Apache .htaccess or Nginx rules for common redirects: single page, HTTPS, www and domain moves.
What this tool does
Produces copy-ready redirect configuration for the most common SEO redirect tasks, with notes about loops and testing.
Who should use it
Site owners migrating pages or domains on Apache or Nginx hosting.
How it works
Each redirect type maps to a tested rule template for the chosen server, with your domain and paths substituted and special characters escaped in regular expressions.
How to use it
- Enter or paste server in the form.
- Adjust the options below the main box if you need to; the defaults suit most cases. Use "Load example" to see how input should look.
- Press the run button. Processing happens instantly in your browser.
- Review the result panel, then copy or download the output if the tool offers it. Use Reset to start over.
Practical example
Old path /old-page to /new-page with 301 outputs "Redirect 301 /old-page /new-page" for Apache.
Understanding the results
Warnings recommend testing one URL first and watching for loops behind proxies or CDNs.
Limitations
Server configuration varies; rules are templates, not guaranteed for every hosting setup. Always keep a backup.
Accuracy and report transparency
Results are computed in your browser from exactly what you enter. Deterministic steps (counting, parsing, encoding, validation) are verified by an automated test-suite with known answers. Where a method is a heuristic, the result panel says "estimated". No external data is used and nothing is invented.
Privacy
Your input never leaves your device for this tool. We count anonymous events (tool opened, run, copied) without storing what you typed. See the Privacy Policy.
Frequently asked questions
301 or 302?
Use 301 (or 308) when a move is permanent so search engines transfer signals to the new URL; use 302 for temporary moves.
Is my data sent to your server?
No. This tool runs entirely in your browser, so the text or files you enter stay on your device. We do record anonymous counts of how often each tool is opened or run (no input data) to see which tools are useful.
How accurate are the results?
Counting, parsing, encoding and validation steps are deterministic and covered by automated tests with known answers. Anything based on a heuristic is labelled "estimated" in the result panel.
Is this tool really free?
Yes. There is no account, limit or paid plan. The site is supported by advertising, which is disclosed on our Advertising Disclosure page.