If I was smarter (or had more time) I would write this into a separate module, but as it stands I modified the source for the rewrite command and added rewritei for case insensitive / non case sensitive rewrites. This does not solve general case sensitivity for everything ( I am going to be using ciopfs (case insensitive on purpose fs) fuse overlay file system on ubuntu for that), but this redireby brandonbates - Ideas and Feature Requests