Fix the force rewriting to actually be proper rewrite rules
Add support for default server