Redirect Generator — htaccess & Nginx
Generate Apache .htaccess and Nginx redirect rules instantly. Supports 301, 302, 307 and 308 redirects, bulk mode, domain moves, HTTPS enforcement, www normalization, trailing slash rules and regex patterns. A free tool by WebEvra.
Single URL Redirect
Bulk Redirects
Domain Redirect
Force HTTP to HTTPS
Redirect all HTTP traffic to HTTPS. The redirect type for this rule is always 301.
WWW Normalization
Trailing Slash Rule
Regex Redirect
Generated Code
Combined Rules 0 rules
About This Tool
This free Redirect Generator by WebEvra helps developers and site owners create server-side redirect rules without memorizing the syntax for Apache .htaccess or Nginx configuration files. Whether you are migrating a website, enforcing HTTPS, normalizing URLs, or setting up bulk redirects during a domain change, this tool generates production-ready code that you can copy and paste directly into your server configuration. Everything runs client-side in your browser — no data is sent to any server.
Frequently Asked Questions
Redirect 301 /old-page https://example.com/new-page to your .htaccess file in the site root. For pattern-based redirects, enable mod_rewrite with RewriteEngine On and use RewriteRule directives. This tool generates the correct syntax for you automatically.return 301 https://example.com/new-page; for simple redirects or rewrite ^/old-path$ /new-path permanent; for pattern-based rules. Unlike Apache, Nginx does not use .htaccess files; changes must be made in the Nginx configuration and the server reloaded.