RewriteEngine On
RewriteBase /


# Rewrite
RewriteRule ^index.html$ index.php?$1
RewriteRule ^user/login.htm$ user/login.php$1
RewriteRule ^reg.htm$ reg.php$1
RewriteRule ^user/repaword.htm$ user/repaword.php$1
RewriteRule ^user/register.htm$ user/register.php$1
RewriteRule ^yflist-(.*).htm$ list.php?catid=$1
RewriteRule ^([0-9]+)$ reg.php?pid=$1
RewriteRule ^ylist-y-(.*)-f-(.*)-h-(.*)-x-(.*)-y-(.*)\.htm$ list.php?catid=$1&sort=$2&sp=$3&ep=$4&page=$5
RewriteRule ^yfview-h-(.*)-x-(.*)-y-(.*)\.htm$ view.php?num_iid=$1&kfx=$2&xsl=$3
RewriteRule ^slist-y-(.*)-f-(.*).htm$ list.php?catid=$1&sort=$2
RewriteRule ^mlist-y-(.*)-f-(.*)-h-(.*)-x-(.*).htm$ list.php?catid=$1&sort=$2&sp=$3&ep=$4
RewriteRule ^searchkey-y-(.*)-f-(.*)-x-(.*)\.htm$ search.php?q=$1&catid=$2&sort=$3
RewriteRule ^msearchkey-y-(.*)-f-(.*)-h-(.*)-x-(.*)-y-(.*).htm$ search.php?q=$1&catid=$2&sort=$3&sp=$4&ep=$5
RewriteRule ^gotoshop-y-(.*)-f-(.*)$ gotoshop.php?id=$1&spme=$2
RewriteRule ^yfsearchkey-y-(.*)-f-(.*).htm$ search.php?q=$1&catid=$2
RewriteRule ^yarticle-(.*).htm$ article.php?id=$1
RewriteRule ^artlist.htm$ artlist.php$1
RewriteRule ^hot\.htm$ hot.php$1
RewriteRule ^huangguan.htm$ huangguan.php$1
RewriteRule ^man.htm$ man.php$1
RewriteRule ^lady.htm$ lady.php$1
RewriteRule ^neiyi.htm$ neiyi.php$1
RewriteRule ^beauty.htm$ beauty.php$1
RewriteRule ^meirong.htm$ meirong.php$1
RewriteRule ^shuma.htm$ shuma.php$1
RewriteRule ^home.htm$ home.php$1
RewriteRule ^mother.htm$ mother.php$1
RewriteRule ^food.htm$ food.php$1
RewriteRule ^out.htm$ out.php$1
RewriteRule ^yfgotoshop-(.*).htm$ gotoshop.php?id=$1
RewriteRule ^fly.htm$ fly.php$1
RewriteRule ^taiwan.htm$ taiwan.php$1
RewriteRule ^about.htm$ about.php$1
RewriteRule ^map.htm$ map.php$1
RewriteRule ^mail.htm$ mail.php$1
RewriteRule ^mian.htm$ mian.php$1
RewriteRule ^help.htm$ help.php$1
RewriteRule ^dianqi.htm$ dianqi.php$1
RewriteRule ^/hotel/index.html$				 /hotel/index.php$1
RewriteRule ^/hotel/hotel-(.*).htm$ /hotel/index.php\?m=hotelinfo&hotel_id=$1
RewriteRule ^/hotel/liansuo.htm$			 /hotel/index.php?m=liansuo$1
RewriteRule ^/hotel/allcity.htm$			 /hotel/index.php?m=allcity$1
RewriteRule ^/hotel/comment.htm$			 /hotel/index.php?m=comment$1
RewriteRule ^/hotel/question.htm$			 /hotel/index.php?m=question$1
RewriteRule ^/hotel/map.htm$			 /hotel/index.php?m=map$1
RewriteRule ^/hotel/news.htm$			 /hotel/index.php?m=news$1
RewriteRule ^/hotel/special.htm$		/hotel/index.php?m=special$1
RewriteRule ^/hotel/lable.htm$			 /hotel/index.php?m=lable$1
RewriteRule ^/hotel/weather.htm$			 /hotel/index.php?m=weather$1
RewriteRule ^/hotel/([a-zA-Z0-9_]+).htm$			 /hotel/index.php?m=$1
RewriteRule ^/hotel/weather-([0-9]+)-([0-9]+).htm$		 /hotel/index.php?m=weather&cityid=$1&xid=$2 
RewriteRule ^/hotel/news-c([0-9]+)-([0-9]+).htm$		 /hotel/index.php?m=news&class_id=$1&page=$2 
RewriteRule ^/hotel/news-c([0-9]+).htm$			 /hotel/index.php?m=news&class_id=$1 
RewriteRule ^/hotel/newsinfo-([0-9]+).htm$			 /hotel/index.php?m=newsinfo&aid=$1
RewriteRule ^/hotel/liansuo-([0-9]+)-([0-9]+).htm$		 /hotel/index.php?m=liansuohotel&cityid=$1&chain_id=$2
RewriteRule ^/hotel/liansuo-([a-zA-Z_]+)-([0-9]+).htm$	 /hotel/index.php?m=liansuohotel&$1=$2 
RewriteRule ^/hotel/city-([0-9]+).htm$			 /hotel/index.php?m=city&cityid=$1
RewriteRule ^/hotel/hotel-([0-9]+)-([0-9]+).htm$		 /hotel/index.php?m=hotelinfo&cityid=$1&hotel_id=$2
RewriteRule ^/hotel/(hotelmap|hotelcomment|hotelnearby|hotelpicture|hotelquestion|hotellable)-([0-9]+).htm$	/hotel/index.php?m=$1&hotel_id=$2
RewriteRule ^/hotel/(comment|question|weather|searchlist)-([0-9]+)-([0-9]+).htm$	 /hotel/index.php?m=$1&cityid=$2&page=$3
RewriteRule ^/hotel/hotellist-([0-9]+)=(.*)$		 /hotel/index.php?m=hotellist&cityid=$1&key=$2
RewriteRule ^/hotel/(comment|question|weather|map|hotellist|searchlist)-([0-9]+).htm$	 /hotel/index.php?m=$1&cityid=$2
RewriteRule ^/hotel/lable-cityid([0-9]+)-([0-9]+)-([0-9]+).htm$	/hotel/index.php?m=lable&cityid=$1&classid=$2&page=$3
RewriteRule ^/hotel/lable-(pid|cityid)([0-9]+)-([0-9]*).htm$	 /hotel/index.php?m=lable&$1=$2&classid=$3
RewriteRule ^/hotel/lable-([0-9]+).htm$				/hotel/index.php?m=lable&classid=$1
RewriteRule ^/hotel/admin$		 /hotel/index.php?m=admin










