About this tool
.htaccess Redirect Generator creates ready-to-paste Apache rewrite rules for common redirect cases.
Generate 301/302, force HTTPS, www/non-www, and path-to-path rules with ease.
Generate Apache .htaccess redirect rules for common cases.
Create common Apache redirect rules
.htaccess Redirect Generator creates ready-to-paste Apache rewrite rules for common redirect cases.
Generate 301/302, force HTTPS, www/non-www, and path-to-path rules with ease.
These rules are for Apache .htaccess. For Nginx, equivalent directives are needed.
Use test mode to preview patterns; always back up your server config before deploying.
Use 301 for permanent redirects, 302 for temporary ones.
Yes, provide patterns for advanced routes when needed.
Edit and render HTML safely in-browser with live preview.
Fetch and inspect HTTP response headers for a URL.
Beautify and validate XML with indentation.
Minify HTML to reduce file size.
Minify JavaScript snippets safely in-browser.
Minify CSS stylesheets and snippets.
Encode or decode URL strings safely.
Convert text to/from Base64.
A simple in-browser HTML editor with live preview.
Explore our complete collection of free online tools and calculators.
Browse All Tools