1. added more comments.
2. added NC Tag for making all the static assets case insensetive ("jpg" now matches "jpg" and "JPG" and so on)
3. transformed "jpe|jpeg" into "jpe?g" as its regex for the same, but shorter
4. changed line 8 from "+" to "*" to match everything, also zero times the wildcard
If a file gets called it will be redirected to index.html
But not if it the requested File does contain a dot (and with this does have a file extension.
If you call:
links.domain.de/notexistingfile.jpg
It will trigger 404
If you call:
links.domain.de/server/[CODE-CODE-CODE]/list-short-urls/1
It will redirect the call to index.html