This is probably a rookie question, but although the npm http-server page states:
...http-server is a simple, zero-configuration command-line http server...
Does this mean it completely disregards an .htaccess file? If so, is there another (yet still simple to use) HTTP server alternative that reads and uses it?
.htaccess is an Apache configuration file. Since Apache isn't npm, Apache configuration files will obviously not work for npm.
Npm uses environment variables and npmrc files to configure things. See this documentation page.
In your case it looks like that this might do what you want it to do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With