Fix config, add router class support rewrite url