VibeHunt
Back to browse
htconvert

htconvert

Convert .htaccess redirects to nginx.conf redirects.

Source

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

Sign in to leave a review.

Loading reviews…

Similar apps