update url-rewrite config and other bug