HTACCESS Redirect Generator
Generate Apache .htaccess or nginx redirect rules
Output will appear here...
Generate Apache .htaccess or nginx redirect rules
Output will appear here...
Runs in your browser. Everything is generated in your browser.
A configuration file for Apache web servers that applies to the folder it is in and all folders below. It is commonly used for redirects, HTTPS and caching rules. Its name starts with a dot, so it may be hidden in your file manager.
Usually a loop: e.g. Cloudflare connects to your server over http while your rule forces https. Tick "Site is behind Cloudflare or a load balancer", or set Cloudflare SSL to "Full".
Redirect matches a path prefix, RedirectMatch uses a regular expression (we use it for exact matches), and RewriteRule (mod_rewrite) can also look at the host, HTTPS and query string.
No. nginx is configured centrally in its server blocks, so choose nginx as the web server to get the equivalent rules.