htconvert
Convert .htaccess redirects to nginx.conf redirects.
The tool reads Apache .htaccess redirect rules and emits equivalent Nginx location blocks. It supports the common `Redirect` directive with status codes such as 301 and 302, converting each source path and target URL into a `location` stanza that returns the same HTTP status. Input can be supplied via standard input or a specified file, and the resulting configuration is written to standard output for easy redirection into an Nginx configuration file.
It is intended for developers and system administrators who are migrating sites from Apache to Nginx and need to preserve existing redirect behavior without manually rewriting rules. The command‑line interface offers basic options for help, version, and file selection, while the same functionality is exposed as a Node.js module for programmatic use in build scripts or deployment pipelines.
The package is distributed via npm, is marked as stable, and includes a test suite and continuous‑integration badges indicating ongoing maintenance. It is released under the MIT license.
Reviews
Loading reviews…
Similar apps

Version Control & Git
diff2html-cli
Create pretty HTML from diffs.

Terminals & CLI
hget
Render websites in plain text from your terminal.
File Management & Transfer
organize-cli
Organize your files automatically.

Version Control & Git
import-github-labels-cli
Sync labels between Github repos.
Terminals & CLI
unix-permissions
Swiss Army knife for Unix permissions.

DevOps & Infrastructure
localtunnel
localtunnel - listed on awesome-cli-apps.