bugfix. url rewriting.