Git, Server & Deployment

Nginx / Apache Rule Converter

Paste Apache .htaccess or Nginx rules and get the equivalent rewrite in the other server’s syntax. Conversion happens in your browser — nothing is uploaded.

Runs in your browser v1.0.0

Direction

live
Conversion direction

Start with the mixed example, or pick a specific rule from the Load example list. Recognised rules are converted; anything unsupported is listed in the notes so nothing breaks silently.

Apache rules

.htaccess

Comments, blank lines and unsupported directives are handled gracefully.

Nginx rules

nginx.conf

What gets converted

Supported Apache input includes Redirect / RedirectMatch, RewriteRule with R=301/R=302, internal rewrites, the force-HTTPS and canonical-host patterns, and the RewriteCond %{REQUEST_FILENAME} !-f front-controller pattern. Supported Nginx input includes location + return, rewrite ... permanent|redirect|last, if ($scheme …), if ($host …) and try_files. Everything runs locally.