Change condition on which to rewrite to maintenance

* Instead of checking wether the request is in /assets/ which uses the rails pipeline
* Check of the path requested exists within public/