New url_rewriting implementation