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

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -