Reworked url rewrite.