I'm developing a Single Page App on the web and just found a exception when redirecting to index.html for all request except request to static files.
This is my current config
modRewrite(['^[^\\.]*$ /index.html [L]'])
This matches everything that does not contain a '.' (period) and redirects the request to index.html.
The problem is if I request a URL like this.
www.example.com/test?q=include.period
It will not redirect this to index.html because it contains a dot in the query string, and it will think this is a static file with the document type .period.
I have tried to get a match on URL not containing a dot before any question mark, but can't get it working. It is hosted on NodeJS.
I'm not very good with regex so any help would be appriciated.
Should match
Should mot match (file ending can be any type of file)
Thanks