Redirect Rules Generator

Write redirect rules (from → to with a 301/302/307/308 code) and generate them for Apache .htaccess, Nginx, IIS web.config and Cloudflare _redirects, with correct regex escaping and detection of redirect loops and chains.

Workspace

How the result is calculated

Each line /from /to [code] is read (default code 301). For Apache RewriteRule ^path$ target [R=code,L] is generated with every special regex character escaped (. + ? ( ) [ ] …) so it matches only that exact path. The rules are then followed over the paths: if a path returns to itself it is a loop, and more than one hop is a chain you are warned to shorten. Codes other than 301/302/307/308, invalid lines and duplicate sources are rejected.

Limits: The simulation matches paths literally and is not equivalent to the full Apache engine (RewriteCond conditions, custom regex patterns, query strings). The tool does not test a live server and does not generate wildcard-pattern rules. Test the rules in a staging environment before production.

FAQ

What is the difference between 301 and 302?

301 is permanent and passes SEO signals; 302 is temporary.

Why warn about chains?

Every hop slows the page and weakens crawling; redirect once to the final destination.

Newest tools

Recently added free tools — they run in your browser without uploading your data

All tools →

AES and ChaCha20 keys with correct IV/nonces via Web Crypto, Hex, Base64 and JWK formats, verification and bulk export

Local

Paste discussions (Reddit, Quora, YouTube) to extract pain points, repeated questions, phrases, topic clusters and title ideas

Local

A bookmarklet that analyses any page as your browser sees it after JavaScript: title, description, H1, links, images, Open Graph, JSON-LD and hreflang

Local

Legitimate link-building tactics, outreach message templates, a linkable-asset idea generator and a local opportunity tracker with CSV and JSON export

Local