.htaccess vers Nginx
Outil gratuit en ligne Convertit les règles de réécriture Apache .htaccess en configuration Nginx, sans installation
What is .htaccess to Nginx Conversion?
.htaccess files contain Apache web server configuration rules. Nginx uses a different configuration syntax and structure. This tool converts common Apache .htaccess directives to equivalent Nginx configuration blocks, helping you migrate from Apache to Nginx or understand configuration differences.
How to Use This Converter
Paste your .htaccess content in the input area and click Convert to generate Nginx configuration. The tool will convert common directives like RewriteRule, Redirect, ErrorDocument, DirectoryIndex, and authentication rules. Click Copy to use the generated Nginx config, or Clear to start over. All processing happens locally in your browser.
Supported Directives
This converter supports: URL rewriting (RewriteRule/RewriteCond), redirects (Redirect/RedirectMatch), custom error pages (ErrorDocument), default files (DirectoryIndex), basic authentication, access control (Allow/Deny), and MIME types. Complex or uncommon directives may require manual adjustment.
▶Is the conversion 100% accurate?
▶Where do I put the converted Nginx configuration?
▶What happens to unsupported directives?
▶Does this handle mod_rewrite conditions?
▶Do I need to reload Nginx after using the converted config?
Si cet outil vous a été utile, offrez un café à l'auteur.
Offrir un café