Revert "Add experimental rewrite rules"

This reverts commit 165cc3fc6dba762cd6bb1311053b4216b6a88e68.
Add rewrite rules and 404 page to server conf