html - Removing case sensitivity Node subfolder -


i have linux webserver using node hosts directory containing static index.html file. wondering how can make user getting correct url not rely upon case sensitivity.

currently, server.com/caa/ points different server.com/caa/ -- directory holding index.html lowercase "caa"

have tried adding middleware coverts urls lower case? heres example of 1 way of doing this

app.use(function(req, res, next) {   req.url = req.url.tolowercase();   next() }); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -