ErrorDocument 404 /index.php?m=error
RewriteEngine on
RewriteRule ^/hotel/index.html$				 /hotel/index.php [L]
RewriteRule ^/hotel/([a-zA-Z0-9_]+)\.html$			 /hotel/index.php?m=$1 [L]
RewriteRule ^/hotel/weather-([0-9]+)-([0-9]+)\.html$		 /hotel/index.php\?m=weather&cityid=$1&xid=$2 [L]

RewriteRule ^/hotel/news-c([0-9]+)-([0-9]+)\.html$		 /hotel/index.php\?m=news&class_id=$1&page=$2 [L]
RewriteRule ^/hotel/news-c([0-9]+)\.html$			 /hotel/index.php\?m=news&class_id=$1 [L]
RewriteRule ^/hotel/newsinfo-([0-9]+)\.html$			 /hotel/index.php\?m=newsinfo&aid=$1 [L]

RewriteRule ^/hotel/liansuo-([0-9]+)-([0-9]+)\.html$		 /hotel/index.php\?m=liansuohotel&cityid=$1&chain_id=$2 [L]
RewriteRule ^/hotel/liansuo-([a-zA-Z_]+)-([0-9]+)\.html$	 /hotel/index.php\?m=liansuohotel&$1=$2 [L]

RewriteRule ^/hotel/city-([0-9]+)\.html$			 /hotel/index.php\?m=city&cityid=$1 [L]

RewriteRule ^/hotel/hotel-([0-9]+)-([0-9]+)\.htm$		 /hotel/index.php\?m=hotelinfo&cityid=$1&hotel_id=$2 [L]
RewriteRule ^/hotel/hotel-([0-9]+)\.htm$			 /hotel/index.php\?m=hotelinfo&hotel_id=$1 [L]
RewriteRule ^/hotel/(hotelmap|hotelcomment|hotelnearby|hotelpicture|hotelquestion|hotellable)-([0-9]+)\.html$	/hotel/index.php\?m=$1&hotel_id=$2 [L]

RewriteRule ^/hotel/(comment|question|weather|searchlist)-([0-9]+)-([0-9]+)\.html$	 /hotel/index.php\?m=$1&cityid=$2&page=$3 [L]
RewriteRule ^/hotel/hotellist-([0-9]+)\.html?([\w%]*)$		 /hotel/index.php\?m=hotellist&cityid=$1&$2 [QSA,L]
RewriteRule ^/hotel/(comment|question|weather|map|hotellist|searchlist)-([0-9]+)\.html$	 /hotel/index.php\?m=$1&cityid=$2 [L]

RewriteRule ^/hotel/lable-cityid([0-9]+)-([0-9]+)-([0-9]+)\.html$	/hotel/index.php\?m=lable&cityid=$1&classid=$2&page=$3 [L]
RewriteRule ^/hotel/lable-(pid|cityid)([0-9]+)-([0-9]*)\.html$	 /hotel/index.php\?m=lable&$1=$2&classid=$3 [L]
RewriteRule ^/hotel/lable-([0-9]+)\.htm$				/hotel/index.php\?m=lable&classid=$1 [L]

RewriteRule ^/hotel/admin$		 /hotel/index.php\?m=admin [L]