Support anchor in url rewriting