refactory url rules mapping interface