patch url rewrite, causes firefox issues