AMH开源社区

AMH社区 - 开放自由有价值的社区

[求助帖] .htaccess规则转换Nginx的规则,怎么弄,求助各位大侠!!!

yzxrcw
铁牌会员
1.00 价值分

203 次阅读   4 张回复   yzxrcw 发表于 2017-10-09 10:48:42
#系统默认
RewriteEngine On
RewriteBase /
ErrorDocument 404 /404.html

#带www的域名301到不带www的域名
#RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,NC,L]

#不带www的域名301到带www的域名
#RewriteCond %{HTTP_HOST} ^gssunw.com [NC]
#RewriteRule ^(.*)$ http://www.gssunw.com/$1 [R=301,NC,L]

RewriteCond %{REQUEST_METHOD} ^(OPTIONS)
RewriteRule .* - [F]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^index.html$ index.php [NC,QSA]
RewriteRule ^404.html$ index.php?service=siteConfig&template=404 [NC,QSA]
RewriteRule ^mobile.html$ index.php?service=siteConfig&template=mobile [NC,QSA]
RewriteRule ^selectpost.html$ index.php?service=siteConfig&template=post [NC,QSA]
RewriteRule ^search.html$ index.php?service=siteConfig&template=search [NC,QSA]
RewriteRule ^search-list.html$ index.php?service=siteConfig&template=search-list [NC,QSA]
RewriteRule ^ios/index.html$ index.php?service=siteConfig&template=app&page=index&type=ios [NC,QSA]
RewriteRule ^ios/?$ index.php?service=siteConfig&template=app&page=index&type=ios [NC,QSA]
RewriteRule ^ios/search.html$ index.php?service=siteConfig&template=app&page=search&type=ios [NC,QSA]
RewriteRule ^android/index.html$ index.php?service=siteConfig&template=app&page=index&type=android [NC,QSA]
RewriteRule ^android/?$ index.php?service=siteConfig&template=app&page=index&type=android [NC,QSA]
RewriteRule ^android/search.html$ index.php?service=siteConfig&template=app&page=search&type=android [NC,QSA]
RewriteRule ^about.html$ index.php?service=siteConfig&template=about [NC,QSA]
RewriteRule ^about-(\d+).html$ index.php?service=siteConfig&template=about&id=$1 [NC,QSA]
RewriteRule ^help.html$ index.php?service=siteConfig&template=help [NC,QSA]
RewriteRule ^help-(\d+).html$ index.php?service=siteConfig&template=help&id=$1 [NC,QSA]
RewriteRule ^help-detail-(\d+).html$ index.php?service=siteConfig&template=help-detail&id=$1 [NC,QSA]
RewriteRule ^protocol-(\d+).html$ index.php?service=siteConfig&template=protocol&id=$1 [NC,QSA]
RewriteRule ^complain-(\w+)-(\w+)-(\d+).html$ index.php?service=member&template=complain&module=$1&dopost=$2&aid=$3 [NC,QSA]
RewriteRule ^notice.html$ index.php?service=siteConfig&template=notice [NC,QSA]
RewriteRule ^notice-detail-(\d+).html$ index.php?service=siteConfig&template=notice-detail&id=$1 [NC,QSA]
RewriteRule ^login_popup.html$ index.php?service=member&template=login_popup [NC,QSA]
RewriteRule ^login.html$ index.php?service=member&template=login [NC,QSA]
RewriteRule ^loginCheck.html$ index.php?service=member&template=loginCheck [NC,QSA]
RewriteRule ^loginFrame.html$ index.php?service=member&template=loginFrame [NC,QSA]
RewriteRule ^sso.html$ index.php?service=member&template=sso [NC,QSA]
RewriteRule ^logout.html$ index.php?service=member&template=logout [NC,QSA]
RewriteRule ^fpwd.html$ index.php?service=member&template=fpwd [NC,QSA]
RewriteRule ^resetpwd.html$ index.php?service=member&template=resetpwd [NC,QSA]
RewriteRule ^register.html$ index.php?service=member&template=register [NC,QSA]
RewriteRule ^registerCheck.html$ index.php?service=member&template=registerCheck [NC,QSA]
RewriteRule ^registerCheck_v1.html$ index.php?service=member&template=registerCheck_v1 [NC,QSA]
RewriteRule ^registerSuccess.html$ index.php?service=member&template=registerSuccess [NC,QSA]
RewriteRule ^registerVerifyEmail.html$ index.php?service=member&template=registerVerifyEmail [NC,QSA]
RewriteRule ^memberVerifyEmail.html$ index.php?service=member&template=memberVerifyEmail [NC,QSA]
RewriteRule ^registerVerifyPhone.html$ index.php?service=member&template=registerVerifyPhone [NC,QSA]
RewriteRule ^memberVerifyPhone.html$ index.php?service=member&template=memberVerifyPhone [NC,QSA]
RewriteRule ^getUserInfo.html$ index.php?service=member&template=getUserInfo [NC,QSA]
RewriteRule ^bindMobile.html$ index.php?service=member&template=bindMobile [NC,QSA]
RewriteRule ^tcquan.html$ index.php?service=siteConfig&template=tcquan [NC,QSA]

<ifmodule mod_deflate.c>
AddOutputFilter DEFLATE html php js css
</ifmodule>

#商家
RewriteRule ^business/index.html$ index.php?service=business&template=index [NC,QSA]
RewriteRule ^business/?$ index.php?service=business&template=index [NC,QSA]
RewriteRule ^business/list.html$ index.php?service=business&template=list [NC,QSA]
RewriteRule ^business/detail-(\d+).html$ index.php?service=business&template=detail&id=$1 [NC,QSA]
RewriteRule ^business/intro-(\d+).html$ index.php?service=business&template=intro&bid=$1 [NC,QSA]
RewriteRule ^business/intro-(\d+)-(\d+).html$ index.php?service=business&template=intro&bid=$1&id=$2 [NC,QSA]
RewriteRule ^business/news-(\d+).html$ index.php?service=business&template=news&bid=$1 [NC,QSA]
RewriteRule ^business/news-(\d+)-(\d+).html$ index.php?service=business&template=news&bid=$1&id=$2 [NC,QSA]
RewriteRule ^business/newsd-(\d+).html$ index.php?service=business&template=newsd&id=$1 [NC,QSA]
RewriteRule ^business/albums-(\d+).html$ index.php?service=business&template=albums&bid=$1 [NC,QSA]
RewriteRule ^business/albums-(\d+)-(\d+).html$ index.php?service=business&template=albums&bid=$1&id=$2 [NC,QSA]
RewriteRule ^business/albumsd-(\d+).html$ index.php?service=business&template=albumsd&id=$1 [NC,QSA]
RewriteRule ^business/video-(\d+).html$ index.php?service=business&template=video&bid=$1 [NC,QSA]
RewriteRule ^business/video-(\d+)-(\d+).html$ index.php?service=business&template=video&bid=$1&id=$2 [NC,QSA]
RewriteRule ^business/videod-(\d+).html$ index.php?service=business&template=videod&id=$1 [NC,QSA]
RewriteRule ^business/panor-(\d+).html$ index.php?service=business&template=panor&bid=$1 [NC,QSA]
RewriteRule ^business/panor-(\d+)-(\d+).html$ index.php?service=business&template=panor&bid=$1&id=$2 [NC,QSA]
RewriteRule ^business/panord-(\d+).html$ index.php?service=business&template=panord&id=$1 [NC,QSA]
RewriteRule ^business/comment-(\d+).html$ index.php?service=business&template=comment&bid=$1 [NC,QSA]
RewriteRule ^business/tuan-(\d+).html$ index.php?service=business&template=tuan&bid=$1 [NC,QSA]
RewriteRule ^business/shop-(\d+).html$ index.php?service=business&template=shop&bid=$1 [NC,QSA]
RewriteRule ^business/house-sale-(\d+).html$ index.php?service=business&template=house-sale&bid=$1 [NC,QSA]
RewriteRule ^business/house-zu-(\d+).html$ index.php?service=business&template=house-zu&bid=$1 [NC,QSA]
RewriteRule ^business/job-(\d+).html$ index.php?service=business&template=job&bid=$1 [NC,QSA]
RewriteRule ^business/waimai-(\d+).html$ index.php?service=business&template=waimai&bid=$1 [NC,QSA]

#企业会员
RewriteRule ^b/login.html$ index.php?service=member&template=login [NC,QSA]
RewriteRule ^b/house-broker.html$ index.php?service=member&template=house-broker [NC,QSA]
RewriteRule ^b/config-(\w+).html$ index.php?service=member&template=config&module=$1 [NC,QSA]
RewriteRule ^b/verify-tuan.html$ index.php?service=member&template=verify-tuan [NC,QSA]
RewriteRule ^b/quan-tuan.html$ index.php?service=member&template=quan-tuan [NC,QSA]
RewriteRule ^b/category-(\w+).html$ index.php?service=member&template=category&module=$1 [NC,QSA]
RewriteRule ^b/logistic-(\w+).html$ index.php?service=member&template=logistic&module=$1 [NC,QSA]
RewriteRule ^b/logistic-(\w+)-(\d+).html$ index.php?service=member&template=logistic&module=$1&id=$2 [NC,QSA]
RewriteRule ^b/index.html$ index.php?service=member&template=index [NC,QSA]
RewriteRule ^b/?$ index.php?service=member&template=index [NC,QSA]
RewriteRule ^b/deposit.html$ index.php?service=member&template=deposit [NC,QSA]
RewriteRule ^b/withdraw.html$ index.php?service=member&template=withdraw [NC,QSA]
RewriteRule ^b/withdraw_log.html$ index.php?service=member&template=withdraw_log [NC,QSA]
RewriteRule ^b/withdraw_log_detail-(\d+).html$ index.php?service=member&template=withdraw_log_detail&id=$1 [NC,QSA]
RewriteRule ^b/record.html$ index.php?service=member&template=record [NC,QSA]
RewriteRule ^b/collect.html$ index.php?service=member&template=collect [NC,QSA]
RewriteRule ^b/collect-(\w+).html$ index.php?service=member&template=collect&module=$1 [NC,QSA]
RewriteRule ^b/message.html$ index.php?service=member&template=message [NC,QSA]
RewriteRule ^b/message_detail-(\d+).html$ index.php?service=member&template=message_detail&id=$1 [NC,QSA]
RewriteRule ^b/order.html$ index.php?service=member&template=order [NC,QSA]
RewriteRule ^b/order-(\w+).html$ index.php?service=member&template=order&module=$1 [NC,QSA]
RewriteRule ^b/orderdetail-(\w+)-(\d+).html$ index.php?service=member&template=orderdetail&module=$1&id=$2 [NC,QSA]
RewriteRule ^b/write-comment-(\w+)-(\d+).html$ index.php?service=member&template=write-comment&module=$1&id=$2 [NC,QSA]
RewriteRule ^b/profile.html$ index.php?service=member&template=profile [NC,QSA]
RewriteRule ^b/portrait.html$ index.php?service=member&template=portrait [NC,QSA]
RewriteRule ^b/connect.html$ index.php?service=member&template=connect [NC,QSA]
RewriteRule ^b/security.html$ index.php?service=member&template=security [NC,QSA]
RewriteRule ^b/security-(\w+).html$ index.php?service=member&template=security&doget=$1 [NC,QSA]
RewriteRule ^b/loginrecord.html$ index.php?service=member&template=loginrecord [NC,QSA]
RewriteRule ^b/point.html$ index.php?service=member&template=point [NC,QSA]
RewriteRule ^b/convert.html$ index.php?service=member&template=convert [NC,QSA]
RewriteRule ^b/transfer.html$ index.php?service=member&template=transfer [NC,QSA]
RewriteRule ^b/coupon.html$ index.php?service=member&template=coupon [NC,QSA]
RewriteRule ^b/manage-(\w+).html$ index.php?service=member&template=manage&module=$1 [NC,QSA]
RewriteRule ^b/manage-(\w+)-(\w+).html$ index.php?service=member&template=manage&module=$1&type=$2 [NC,QSA]
RewriteRule ^b/fabu-(\w+).html$ index.php?service=member&template=fabu&module=$1 [NC,QSA]
RewriteRule ^b/fabu-(\w+)-(\d+).html$ index.php?service=member&template=fabu&module=$1&typeid=$2 [NC,QSA]
RewriteRule ^b/fabu-(\w+)-(\w+).html$ index.php?service=member&template=fabu&module=$1&type=$2 [NC,QSA]
RewriteRule ^b/address.html$ index.php?service=member&template=address [NC,QSA]
RewriteRule ^b/team-(\w+).html$ index.php?service=member&template=team&module=$1 [NC,QSA]
RewriteRule ^b/teamAdd-(\w+).html$ index.php?service=member&template=teamAdd&module=$1 [NC,QSA]
RewriteRule ^b/albums-(\w+).html$ index.php?service=member&template=albums&module=$1 [NC,QSA]
RewriteRule ^b/albumsAdd-(\w+).html$ index.php?service=member&template=albumsAdd&module=$1 [NC,QSA]
RewriteRule ^b/case-(\w+).html$ index.php?service=member&template=case&module=$1 [NC,QSA]
RewriteRule ^b/caseAdd-(\w+).html$ index.php?service=member&template=caseAdd&module=$1 [NC,QSA]
RewriteRule ^b/booking-(\w+).html$ index.php?service=member&template=booking&module=$1 [NC,QSA]
RewriteRule ^b/job-(\w+).html$ index.php?service=member&template=job&module=$1 [NC,QSA]
RewriteRule ^b/post.html$ index.php?service=member&template=post [NC,QSA]
RewriteRule ^b/resume-(\w+).html$ index.php?service=member&template=resume&module=$1 [NC,QSA]
RewriteRule ^b/invitation-(\w+).html$ index.php?service=member&template=invitation&module=$1 [NC,QSA]
RewriteRule ^b/collections-(\w+).html$ index.php?service=member&template=collections&module=$1 [NC,QSA]
RewriteRule ^b/dating-profile.html$ index.php?service=member&template=dating-profile [NC,QSA]
RewriteRule ^b/dating-review.html$ index.php?service=member&template=dating-review [NC,QSA]
RewriteRule ^b/dating-review-detail-(\d+).html$ index.php?service=member&template=dating-review-detail&id=$1 [NC,QSA]
RewriteRule ^b/dating-visit.html$ index.php?service=member&template=dating-visit [NC,QSA]
RewriteRule ^b/dating-album.html$ index.php?service=member&template=dating-album [NC,QSA]
RewriteRule ^b/dating-album-add.html$ index.php?service=member&template=dating-album-add [NC,QSA]
RewriteRule ^b/waimai-menus.html$ index.php?service=member&template=waimai-menus [NC,QSA]
RewriteRule ^b/waimai-albums.html$ index.php?service=member&template=waimai-albums [NC,QSA]
RewriteRule ^b/waimai-albums-add.html$ index.php?service=member&template=waimai-albums-add [NC,QSA]
RewriteRule ^b/huodong-reg-(\d+).html$ index.php?service=member&template=huodong-reg&id=$1 [NC,QSA]
RewriteRule ^b/huodong-join.html$ index.php?service=member&template=huodong-join [NC,QSA]
RewriteRule ^b/dressup-website.html$ index.php?service=member&template=dressup-website [NC,QSA]
RewriteRule ^b/website-news.html$ index.php?service=member&template=website-news [NC,QSA]
RewriteRule ^b/website-guest.html$ index.php?service=member&template=website-guest [NC,QSA]
RewriteRule ^b/business-about.html$ index.php?service=member&template=business-about [NC,QSA]
RewriteRule ^b/business-news.html$ index.php?service=member&template=business-news [NC,QSA]
RewriteRule ^b/business-albums.html$ index.php?service=member&template=business-albums [NC,QSA]
RewriteRule ^b/business-video.html$ index.php?service=member&template=business-video [NC,QSA]
RewriteRule ^b/business-panor.html$ index.php?service=member&template=business-panor [NC,QSA]
RewriteRule ^b/business-comment.html$ index.php?service=member&template=business-comment [NC,QSA]
RewriteRule ^b/shop.html$ index.php?service=member&template=shop [NC,QSA]
RewriteRule ^b/checkout.html$ index.php?service=member&template=checkout [NC,QSA]
RewriteRule ^b/checkout-order.html$ index.php?service=member&template=checkout-order [NC,QSA]
RewriteRule ^b/checkout-order-detail.html$ index.php?service=member&template=checkout-order-detail [NC,QSA]

RewriteRule ^b/waimai-store.html$ index.php?service=member&template=waimai-store [NC,QSA]
RewriteRule ^b/manage-waimai.html$ index.php?service=member&template=manage-waimai [NC,QSA]
RewriteRule ^b/category-waimai.html$ index.php?service=member&template=category-waimai [NC,QSA]
RewriteRule ^b/new-category-waimai.html$ index.php?service=member&template=new-category-waimai [NC,QSA]
RewriteRule ^b/waimai-guest-reply.html$ index.php?service=member&template=waimai-guest-reply [NC,QSA]
RewriteRule ^b/waimai-guest.html$ index.php?service=member&template=waimai-guest [NC,QSA]
RewriteRule ^b/waimai-comment.html$ index.php?service=member&template=waimai-comment [NC,QSA]
RewriteRule ^b/waimai-comment-reply.html$ index.php?service=member&template=waimai-comment-reply [NC,QSA]
RewriteRule ^b/order-waimai-cancelled.html$ index.php?service=member&template=order-waimai-cancelled [NC,QSA]
RewriteRule ^b/order-waimai-confirmed.html$ index.php?service=member&template=order-waimai-confirmed [NC,QSA]
RewriteRule ^b/order-waimai-delivery.html$ index.php?service=member&template=order-waimai-delivery [NC,QSA]
RewriteRule ^b/order-waimai-succeeded.html$ index.php?service=member&template=order-waimai-succeeded [NC,QSA]
RewriteRule ^b/order-waimai-failed.html$ index.php?service=member&template=order-waimai-failed [NC,QSA]
RewriteRule ^b/order-waimai-refunding.html$ index.php?service=member&template=order-waimai-refunding [NC,QSA]
RewriteRule ^b/order-waimai-detail.html$ index.php?service=member&template=order-waimai-detail [NC,QSA]

RewriteRule ^b/pocket.html$ index.php?service=member&template=pocket [NC,QSA]
RewriteRule ^b/checkout.html$ index.php?service=member&template=checkout [NC,QSA]
RewriteRule ^b/checkout-order.html$ index.php?service=member&template=checkout-order [NC,QSA]
RewriteRule ^b/checkout-order-detail.html$ index.php?service=member&template=checkout-order-detail [NC,QSA]
RewriteRule ^b/checkout-account.html$ index.php?service=member&template=checkout-account [NC,QSA]
RewriteRule ^b/balance.html$ index.php?service=member&template=balance [NC,QSA]
RewriteRule ^b/integral.html$ index.php?service=member&template=integral [NC,QSA]
RewriteRule ^b/service.html$ index.php?service=member&template=service [NC,QSA]
RewriteRule ^b/setting.html$ index.php?service=member&template=setting [NC,QSA]
RewriteRule ^b/version.html$ index.php?service=member&template=version [NC,QSA]
RewriteRule ^b/info.html$ index.php?service=member&template=info [NC,QSA]
RewriteRule ^b/house.html$ index.php?service=member&template=house [NC,QSA]
RewriteRule ^b/package.html$ index.php?service=member&template=package [NC,QSA]
RewriteRule ^b/shop-coupon.html$ index.php?service=member&template=shop-coupon [NC,QSA]
RewriteRule ^b/waimai-coupon.html$ index.php?service=member&template=waimai-coupon [NC,QSA]
RewriteRule ^b/tuan-coupon.html$ index.php?service=member&template=tuan-coupon [NC,QSA]
RewriteRule ^b/tuan-coupon-detail.html$ index.php?service=member&template=tuan-coupon-detail [NC,QSA]
RewriteRule ^b/vip-card.html$ index.php?service=member&template=vip-card [NC,QSA]
RewriteRule ^b/upgrade.html$ index.php?service=member&template=upgrade [NC,QSA]
RewriteRule ^b/upgrade-pay.html$ index.php?service=member&template=upgrade-pay [NC,QSA]
RewriteRule ^b/upgrade-success.html$ index.php?service=member&template=upgrade-success [NC,QSA]
RewriteRule ^b/confirm-order.html$ index.php?service=member&template=confirm-order [NC,QSA]
RewriteRule ^b/enter.html$ index.php?service=member&template=enter [NC,QSA]
RewriteRule ^b/pay-success.html$ index.php?service=member&template=pay-success [NC,QSA]
RewriteRule ^b/select-module.html$ index.php?service=member&template=select-module [NC,QSA]
RewriteRule ^b/enter-order.html$ index.php?service=member&template=enter-order [NC,QSA]
RewriteRule ^b/attention.html$ index.php?service=member&template=attention [NC,QSA]
RewriteRule ^b/evaluate.html$ index.php?service=member&template=evaluate [NC,QSA]
RewriteRule ^b/module.html$ index.php?service=member&template=module [NC,QSA]
RewriteRule ^b/promotion.html$ index.php?service=member&template=promotion [NC,QSA]
RewriteRule ^b/payment.html$ index.php?service=member&template=payment [NC,QSA]
RewriteRule ^b/payment-success.html$ index.php?service=member&template=payment-success [NC,QSA]
RewriteRule ^b/extract.html$ index.php?service=member&template=extract [NC,QSA]
RewriteRule ^b/bankCard.html$ index.php?service=member&template=bankCard [NC,QSA]
RewriteRule ^b/alipay-record.html$ index.php?service=member&template=alipay-record [NC,QSA]

#个人会员
RewriteRule ^u/index.html$ index.php?service=member&template=index [NC,QSA]
RewriteRule ^u/?$ index.php?service=member&template=index [NC,QSA]
RewriteRule ^u/deposit.html$ index.php?service=member&template=deposit [NC,QSA]
RewriteRule ^u/withdraw.html$ index.php?service=member&template=withdraw [NC,QSA]
RewriteRule ^u/withdraw_log.html$ index.php?service=member&template=withdraw_log [NC,QSA]
RewriteRule ^u/withdraw_log_detail-(\d+).html$ index.php?service=member&template=withdraw_log_detail&id=$1 [NC,QSA]
RewriteRule ^u/record.html$ index.php?service=member&template=record [NC,QSA]
RewriteRule ^u/collect.html$ index.php?service=member&template=collect [NC,QSA]
RewriteRule ^u/collect-(\w+).html$ index.php?service=member&template=collect&module=$1 [NC,QSA]
RewriteRule ^u/message.html$ index.php?service=member&template=message [NC,QSA]
RewriteRule ^u/message_detail-(\d+).html$ index.php?service=member&template=message_detail&id=$1 [NC,QSA]
RewriteRule ^u/order.html$ index.php?service=member&template=order [NC,QSA]
RewriteRule ^u/order-(\w+).html$ index.php?service=member&template=order&module=$1 [NC,QSA]
RewriteRule ^u/orderdetail-(\w+)-(\d+).html$ index.php?service=member&template=orderdetail&module=$1&id=$2 [NC,QSA]
RewriteRule ^u/write-comment-(\w+)-(\d+).html$ index.php?service=member&template=write-comment&module=$1&id=$2 [NC,QSA]
RewriteRule ^u/profile.html$ index.php?service=member&template=profile [NC,QSA]
RewriteRule ^u/portrait.html$ index.php?service=member&template=portrait [NC,QSA]
RewriteRule ^u/connect.html$ index.php?service=member&template=connect [NC,QSA]
RewriteRule ^u/security.html$ index.php?service=member&template=security [NC,QSA]
RewriteRule ^u/security-(\w+).html$ index.php?service=member&template=security&doget=$1 [NC,QSA]
RewriteRule ^u/loginrecord.html$ index.php?service=member&template=loginrecord [NC,QSA]
RewriteRule ^u/point.html$ index.php?service=member&template=point [NC,QSA]
RewriteRule ^u/convert.html$ index.php?service=member&template=convert [NC,QSA]
RewriteRule ^u/transfer.html$ index.php?service=member&template=transfer [NC,QSA]
RewriteRule ^u/coupon.html$ index.php?service=member&template=coupon [NC,QSA]
RewriteRule ^u/manage-(\w+).html$ index.php?service=member&template=manage&module=$1 [NC,QSA]
RewriteRule ^u/manage-(\w+)-(\w+).html$ index.php?service=member&template=manage&module=$1&type=$2 [NC,QSA]
RewriteRule ^u/fabu-(\w+).html$ index.php?service=member&template=fabu&module=$1 [NC,QSA]
RewriteRule ^u/fabu-(\w+)-(\d+).html$ index.php?service=member&template=fabu&module=$1&typeid=$2 [NC,QSA]
RewriteRule ^u/fabu-(\w+)-(\w+).html$ index.php?service=member&template=fabu&module=$1&type=$2 [NC,QSA]
RewriteRule ^u/address.html$ index.php?service=member&template=address [NC,QSA]
RewriteRule ^u/team-(\w+).html$ index.php?service=member&template=team&module=$1 [NC,QSA]
RewriteRule ^u/teamAdd-(\w+).html$ index.php?service=member&template=teamAdd&module=$1 [NC,QSA]
RewriteRule ^u/albums-(\w+).html$ index.php?service=member&template=albums&module=$1 [NC,QSA]
RewriteRule ^u/albumsAdd-(\w+).html$ index.php?service=member&template=albumsAdd&module=$1 [NC,QSA]
RewriteRule ^u/case-(\w+).html$ index.php?service=member&template=case&module=$1 [NC,QSA]
RewriteRule ^u/caseAdd-(\w+).html$ index.php?service=member&template=caseAdd&module=$1 [NC,QSA]
RewriteRule ^u/booking-(\w+).html$ index.php?service=member&template=booking&module=$1 [NC,QSA]
RewriteRule ^u/job-(\w+).html$ index.php?service=member&template=job&module=$1 [NC,QSA]
RewriteRule ^u/post.html$ index.php?service=member&template=post [NC,QSA]
RewriteRule ^u/resume-(\w+).html$ index.php?service=member&template=resume&module=$1 [NC,QSA]
RewriteRule ^u/invitation-(\w+).html$ index.php?service=member&template=invitation&module=$1 [NC,QSA]
RewriteRule ^u/collections-(\w+).html$ index.php?service=member&template=collections&module=$1 [NC,QSA]
RewriteRule ^u/dating-profile.html$ index.php?service=member&template=dating-profile [NC,QSA]
RewriteRule ^u/dating-review.html$ index.php?service=member&template=dating-review [NC,QSA]
RewriteRule ^u/dating-review-detail-(\d+).html$ index.php?service=member&template=dating-review-detail&id=$1 [NC,QSA]
RewriteRule ^u/dating-visit.html$ index.php?service=member&template=dating-visit [NC,QSA]
RewriteRule ^u/dating-album.html$ index.php?service=member&template=dating-album [NC,QSA]
RewriteRule ^u/dating-album-add.html$ index.php?service=member&template=dating-album-add [NC,QSA]
RewriteRule ^u/config-house.html$ index.php?service=member&template=config-house [NC,QSA]
RewriteRule ^u/house.html$ index.php?service=member&template=house [NC,QSA]
RewriteRule ^u/info.html$ index.php?service=member&template=info [NC,QSA]
RewriteRule ^u/article.html$ index.php?service=member&template=article [NC,QSA]
RewriteRule ^u/job.html$ index.php?service=member&template=job [NC,QSA]
RewriteRule ^u/pocket.html$ index.php?service=member&template=pocket [NC,QSA]
RewriteRule ^u/zhaoshang.html$ index.php?service=member&template=zhaoshang [NC,QSA]
RewriteRule ^u/balance.html$ index.php?service=member&template=balance [NC,QSA]
RewriteRule ^u/integral.html$ index.php?service=member&template=integral [NC,QSA]
RewriteRule ^u/service.html$ index.php?service=member&template=service [NC,QSA]
RewriteRule ^u/tieba.html$ index.php?service=member&template=tieba [NC,QSA]
RewriteRule ^u/huodong-reg-(\d+).html$ index.php?service=member&template=huodong-reg&id=$1 [NC,QSA]
RewriteRule ^u/huodong-join.html$ index.php?service=member&template=huodong-join [NC,QSA]
RewriteRule ^u/huodong.html$ index.php?service=member&template=huodong [NC,QSA]
RewriteRule ^u/setting.html$ index.php?service=member&template=setting [NC,QSA]
RewriteRule ^u/version.html$ index.php?service=member&template=version [NC,QSA]
RewriteRule ^u/verify-tuan.html$ index.php?service=member&template=verify-tuan [NC,QSA]
RewriteRule ^u/quan-tuan.html$ index.php?service=member&template=quan-tuan [NC,QSA]
RewriteRule ^u/dating.html$ index.php?service=member&template=dating [NC,QSA]
RewriteRule ^u/shop.html$ index.php?service=member&template=shop [NC,QSA]

RewriteRule ^u/package.html$ index.php?service=member&template=package [NC,QSA]
RewriteRule ^u/shop-coupon.html$ index.php?service=member&template=shop-coupon [NC,QSA]
RewriteRule ^u/waimai-coupon.html$ index.php?service=member&template=waimai-coupon [NC,QSA]
RewriteRule ^u/tuan-coupon.html$ index.php?service=member&template=tuan-coupon [NC,QSA]
RewriteRule ^u/tuan-coupon-detail.html$ index.php?service=member&template=tuan-coupon-detail [NC,QSA]
RewriteRule ^u/vip-card.html$ index.php?service=member&template=vip-card [NC,QSA]
RewriteRule ^u/upgrade.html$ index.php?service=member&template=upgrade [NC,QSA]
RewriteRule ^u/upgrade-pay.html$ index.php?service=member&template=upgrade-pay [NC,QSA]
RewriteRule ^u/upgrade-success.html$ index.php?service=member&template=upgrade-success [NC,QSA]
RewriteRule ^u/confirm-order.html$ index.php?service=member&template=confirm-order [NC,QSA]
RewriteRule ^u/enter.html$ index.php?service=member&template=enter [NC,QSA]
RewriteRule ^u/pay-success.html$ index.php?service=member&template=pay-success [NC,QSA]
RewriteRule ^u/select-module.html$ index.php?service=member&template=select-module [NC,QSA]
RewriteRule ^u/enter-order.html$ index.php?service=member&template=enter-order [NC,QSA]
RewriteRule ^u/enter-upload.html$ index.php?service=member&template=enter-upload [NC,QSA]
RewriteRule ^u/enter-review.html$ index.php?service=member&template=enter-review [NC,QSA]
RewriteRule ^u/attention.html$ index.php?service=member&template=attention [NC,QSA]
RewriteRule ^u/claim.html$ index.php?service=member&template=claim [NC,QSA]
RewriteRule ^u/payment.html$ index.php?service=member&template=payment [NC,QSA]
RewriteRule ^u/payment-success.html$ index.php?service=member&template=payment-success [NC,QSA]
RewriteRule ^u/promotion.html$ index.php?service=member&template=promotion [NC,QSA]
RewriteRule ^u/extract.html$ index.php?service=member&template=extract [NC,QSA]
RewriteRule ^u/check.html$ index.php?service=member&template=check [NC,QSA]
RewriteRule ^u/bankCard.html$ index.php?service=member&template=bankCard [NC,QSA]
RewriteRule ^u/alipay-record.html$ index.php?service=member&template=alipay-record [NC,QSA]
RewriteRule ^u/reward.html$ index.php?service=member&template=reward [NC,QSA]


#装修门户
RewriteRule ^zhuangxiu/index.html$ index.php?service=renovation [NC,QSA]
RewriteRule ^zhuangxiu/?$ index.php?service=renovation [NC,QSA]
RewriteRule ^zhuangxiu/albums.html$ index.php?service=renovation&template=albums [NC,QSA]
RewriteRule ^zhuangxiu/albums-detail-(\d+).html$ index.php?service=renovation&template=albums-detail&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/case.html$ index.php?service=renovation&template=case [NC,QSA]
RewriteRule ^zhuangxiu/case-detail-(\d+).html$ index.php?service=renovation&template=case-detail&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/company.html$ index.php?service=renovation&template=company [NC,QSA]
RewriteRule ^zhuangxiu/company-detail-(\d+).html$ index.php?service=renovation&template=company-detail&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/company-case-(\d+).html$ index.php?service=renovation&template=company-case&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/company-albums-(\d+).html$ index.php?service=renovation&template=company-albums&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/company-team-(\d+).html$ index.php?service=renovation&template=company-team&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/zwj.html$ index.php?service=renovation&template=zwj [NC,QSA]
RewriteRule ^zhuangxiu/community-(\d+).html$ index.php?service=renovation&template=community&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/designer.html$ index.php?service=renovation&template=designer [NC,QSA]
RewriteRule ^zhuangxiu/designer-detail-(\d+).html$ index.php?service=renovation&template=designer-detail&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/designer-detail-(\d+)-(\d+).html$ index.php?service=renovation&template=designer-detail&id=$1&page=$2 [NC,QSA]
RewriteRule ^zhuangxiu/entrust.html$ index.php?service=renovation&template=entrust [NC,QSA]
RewriteRule ^zhuangxiu/raiders.html$ index.php?service=renovation&template=raiders [NC,QSA]
RewriteRule ^zhuangxiu/raiders-(\d+).html$ index.php?service=renovation&template=raiders-list&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/raiders-(\d+)-(\d+).html$ index.php?service=renovation&template=raiders-list&id=$1&page=$2 [NC,QSA]
RewriteRule ^zhuangxiu/raiders-detail-(\d+).html$ index.php?service=renovation&template=raiders-detail&id=$1 [NC,QSA]
RewriteRule ^zhuangxiu/zb.html$ index.php?service=renovation&template=zb [NC,QSA]
RewriteRule ^zhuangxiu/zb-(\d+).html$ index.php?service=renovation&template=zb&page=$1 [NC,QSA]
RewriteRule ^zhuangxiu/zb-detail-(\d+).html$ index.php?service=renovation&template=zb-detail&id=$1 [NC,QSA]

#投票活动
RewriteRule ^vote/index.html$ index.php?service=vote [NC,QSA]
RewriteRule ^vote/?$ index.php?service=vote [NC,QSA]
RewriteRule ^vote/list.html$ index.php?service=vote&template=list [NC,QSA]
RewriteRule ^vote/detail-(\d+).html$ index.php?service=vote&template=detail&id=$1 [NC,QSA]
RewriteRule ^vote/detail-(\d+)-(\d+).html$ index.php?service=vote&template=detail&id=$1&orderby=$2 [NC,QSA]
RewriteRule ^vote/detail-(\d+)-(\d+)-(\d+).html$ index.php?service=vote&template=detail&id=$1&orderby=$2&page=$3 [NC,QSA]
RewriteRule ^vote/user-(\d+).html$ index.php?service=vote&template=user&id=$1 [NC,QSA]


#拖拽专题
RewriteRule ^zhuanti/index.html$ index.php?service=special [NC,QSA]
RewriteRule ^zhuanti/?$ index.php?service=special [NC,QSA]
RewriteRule ^zhuanti/list.html$ index.php?service=special&template=list [NC,QSA]
RewriteRule ^zhuanti/list-(\d+).html$ index.php?service=special&template=list&id=$1 [NC,QSA]
RewriteRule ^zhuanti/detail-(.*).html$ special.php?id=$1 [NC,QSA]

#美食外卖
RewriteRule ^waimai/index.html$ index.php?service=waimai [NC,QSA]
RewriteRule ^waimai/?$ index.php?service=waimai [NC,QSA]
RewriteRule ^waimai/list.html$ index.php?service=waimai&template=list [NC,QSA]
RewriteRule ^waimai/shop-(\d+).html$ index.php?service=waimai&template=shop&id=$1 [NC,QSA]
RewriteRule ^waimai/info-(\d+).html$ index.php?service=waimai&template=info&id=$1 [NC,QSA]
RewriteRule ^waimai/range-(\d+).html$ index.php?service=waimai&template=range&id=$1 [NC,QSA]
RewriteRule ^waimai/photo-(\d+).html$ index.php?service=waimai&template=photo&id=$1 [NC,QSA]
RewriteRule ^waimai/waimai-help.html$ index.php?service=waimai&template=waimai-help [NC,QSA]
RewriteRule ^waimai/cart-(\d+).html$ index.php?service=waimai&template=cart&id=$1 [NC,QSA]
RewriteRule ^waimai/confirm.html$ index.php?service=waimai&template=confirm [NC,QSA]
RewriteRule ^waimai/payreturn-(\w+).html$ index.php?service=waimai&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^waimai/orderlist.html$ index.php?service=waimai&template=orderlist [NC,QSA]
RewriteRule ^waimai/orderdetail-(\d+).html$ index.php?service=waimai&template=orderdetail&id=$1 [NC,QSA]

RewriteRule ^waimai/local.html$ index.php?service=waimai&template=local [NC,QSA]
RewriteRule ^waimai/search.html$ index.php?service=waimai&template=search [NC,QSA]
RewriteRule ^waimai/buy.html$ index.php?service=waimai&template=buy [NC,QSA]
RewriteRule ^waimai/sj-list.html$ index.php?service=waimai&template=sj-list [NC,QSA]
RewriteRule ^waimai/sj-detail.html$ index.php?service=waimai&template=sj-detail [NC,QSA]

#互动交友
RewriteRule ^dating/index.html$ index.php?service=dating [NC,QSA]
RewriteRule ^dating/?$ index.php?service=dating [NC,QSA]
RewriteRule ^dating/my.html$ index.php?service=dating&template=my [NC,QSA]
RewriteRule ^dating/u-(\d+).html$ index.php?service=dating&template=u&id=$1 [NC,QSA]
RewriteRule ^dating/search.html$ index.php?service=dating&template=search [NC,QSA]
RewriteRule ^dating/activity.html$ index.php?service=dating&template=activity [NC,QSA]
RewriteRule ^dating/activity-(\d+).html$ index.php?service=dating&template=activity-detail&id=$1 [NC,QSA]
RewriteRule ^dating/story.html$ index.php?service=dating&template=story [NC,QSA]
RewriteRule ^dating/story-(\d+).html$ index.php?service=dating&template=story-detail&id=$1 [NC,QSA]

#招聘求职
RewriteRule ^job/index.html$ index.php?service=job [NC,QSA]
RewriteRule ^job/?$ index.php?service=job [NC,QSA]
RewriteRule ^job/zhaopin.html$ index.php?service=job&template=zhaopin [NC,QSA]
RewriteRule ^job/job-(\d+).html$ index.php?service=job&template=job&id=$1 [NC,QSA]
RewriteRule ^job/bole.html$ index.php?service=job&template=bole [NC,QSA]
RewriteRule ^job/company.html$ index.php?service=job&template=company [NC,QSA]
RewriteRule ^job/company-(\d+).html$ index.php?service=job&template=company-detail&id=$1 [NC,QSA]
RewriteRule ^job/company-album-(\d+).html$ index.php?service=job&template=company-album&id=$1 [NC,QSA]
RewriteRule ^job/company-job-(\d+).html$ index.php?service=job&template=company-job&id=$1 [NC,QSA]
RewriteRule ^job/company-salary-(\d+).html$ index.php?service=job&template=company-salary&id=$1 [NC,QSA]
RewriteRule ^job/resume.html$ index.php?service=job&template=resume [NC,QSA]
RewriteRule ^job/resume-(\d+).html$ index.php?service=job&template=resume-detail&id=$1 [NC,QSA]
RewriteRule ^job/zhaopinhui.html$ index.php?service=job&template=zhaopinhui [NC,QSA]
RewriteRule ^job/zhaopinhui-(\d+).html$ index.php?service=job&template=zhaopinhui-detail&id=$1 [NC,QSA]
RewriteRule ^job/payroll.html$ index.php?service=job&template=payroll [NC,QSA]
RewriteRule ^job/payroll-list.html$ index.php?service=job&template=payroll-list [NC,QSA]
RewriteRule ^job/news.html$ index.php?service=job&template=news [NC,QSA]
RewriteRule ^job/news-(\d+).html$ index.php?service=job&template=news&typeid=$1 [NC,QSA]
RewriteRule ^job/news-(\d+)-(\d+).html$ index.php?service=job&template=news&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^job/news-detail-(\d+).html$ index.php?service=job&template=news-detail&id=$1 [NC,QSA]
RewriteRule ^job/doc.html$ index.php?service=job&template=download [NC,QSA]
RewriteRule ^job/doc-(\d+).html$ index.php?service=job&template=doc&typeid=$1 [NC,QSA]
RewriteRule ^job/doc-(\d+)-(\d+).html$ index.php?service=job&template=doc&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^job/doc-detail-(\d+).html$ index.php?service=job&template=doc-detail&id=$1 [NC,QSA]

#家居门户
RewriteRule ^home/index.html$ index.php?service=home [NC,QSA]
RewriteRule ^home/?$ index.php?service=home [NC,QSA]
RewriteRule ^home/brand.html$ index.php?service=home&template=brand [NC,QSA]
RewriteRule ^home/brand-(\d+).html$ index.php?service=home&template=brand&typeid=$1 [NC,QSA]
RewriteRule ^home/brand-(\d+)-(\d+).html$ index.php?service=home&template=brand&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^home/brand-detail-(\d+).html$ index.php?service=home&template=brand-detail&id=$1 [NC,QSA]
RewriteRule ^home/brand-detail-(\d+)-(\d+).html$ index.php?service=home&template=brand-detail&id=$1&typeid=$2 [NC,QSA]
RewriteRule ^home/brand-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=home&template=brand-detail&id=$1&typeid=$2&page=$3 [NC,QSA]
RewriteRule ^home/store.html$ index.php?service=home&template=store [NC,QSA]
RewriteRule ^home/store-(\d+).html$ index.php?service=home&template=store&typeid=$1 [NC,QSA]
RewriteRule ^home/store-(\d+)-(\d+).html$ index.php?service=home&template=store&typeid=$1&addrid=$2 [NC,QSA]
RewriteRule ^home/store-(\d+)-(\d+)-(\d+).html$ index.php?service=home&template=store&typeid=$1&addrid=$2&business=$3 [NC,QSA]
RewriteRule ^home/store-(\d+)-(\d+)-(\d+)-(\d+).html$ index.php?service=home&template=store&typeid=$1&addrid=$2&business=$3&page=$4 [NC,QSA]
RewriteRule ^home/store-detail-(\d+).html$ index.php?service=home&template=store-detail&id=$1 [NC,QSA]
RewriteRule ^home/store-detail-(\d+)-(\d+).html$ index.php?service=home&template=store-detail&id=$1&page=$2 [NC,QSA]
RewriteRule ^home/list.html$ index.php?service=home&template=list [NC,QSA]
RewriteRule ^home/detail-(\d+).html$ index.php?service=home&template=detail&id=$1 [NC,QSA]
RewriteRule ^home/cart.html$ index.php?service=home&template=cart [NC,QSA]
RewriteRule ^home/confirm-order.html$ index.php?service=home&template=confirm-order [NC,QSA]
RewriteRule ^home/pay.html$ index.php?service=home&template=pay [NC,QSA]
RewriteRule ^home/payreturn-(\w+).html$ index.php?service=home&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^home/news.html$ index.php?service=home&template=news [NC,QSA]
RewriteRule ^home/news-(\d+).html$ index.php?service=home&template=news&typeid=$1 [NC,QSA]
RewriteRule ^home/news-(\d+)-(\d+).html$ index.php?service=home&template=news&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^home/news-detail-(\d+).html$ index.php?service=home&template=news-detail&id=$1 [NC,QSA]
RewriteRule ^home/category.html$ index.php?service=home&template=category [NC,QSA]

#家具门户
RewriteRule ^furniture/index.html$ index.php?service=furniture [NC,QSA]
RewriteRule ^furniture/?$ index.php?service=furniture [NC,QSA]
RewriteRule ^furniture/brand.html$ index.php?service=furniture&template=brand [NC,QSA]
RewriteRule ^furniture/brand-(\d+).html$ index.php?service=furniture&template=brand&typeid=$1 [NC,QSA]
RewriteRule ^furniture/brand-(\d+)-(\d+).html$ index.php?service=furniture&template=brand&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^furniture/brand-detail-(\d+).html$ index.php?service=furniture&template=brand-detail&id=$1 [NC,QSA]
RewriteRule ^furniture/brand-detail-(\d+)-(\d+).html$ index.php?service=furniture&template=brand-detail&id=$1&typeid=$2 [NC,QSA]
RewriteRule ^furniture/brand-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=furniture&template=brand-detail&id=$1&typeid=$2&page=$3 [NC,QSA]
RewriteRule ^furniture/store.html$ index.php?service=furniture&template=store [NC,QSA]
RewriteRule ^furniture/store-(\d+).html$ index.php?service=furniture&template=store&typeid=$1 [NC,QSA]
RewriteRule ^furniture/store-(\d+)-(\d+).html$ index.php?service=furniture&template=store&typeid=$1&addrid=$2 [NC,QSA]
RewriteRule ^furniture/store-(\d+)-(\d+)-(\d+).html$ index.php?service=furniture&template=store&typeid=$1&addrid=$2&business=$3 [NC,QSA]
RewriteRule ^furniture/store-(\d+)-(\d+)-(\d+)-(\d+).html$ index.php?service=furniture&template=store&typeid=$1&addrid=$2&business=$3&page=$4 [NC,QSA]
RewriteRule ^furniture/store-detail-(\d+).html$ index.php?service=furniture&template=store-detail&id=$1 [NC,QSA]
RewriteRule ^furniture/store-detail-(\d+)-(\d+).html$ index.php?service=furniture&template=store-detail&id=$1&page=$2 [NC,QSA]
RewriteRule ^furniture/list.html$ index.php?service=furniture&template=list [NC,QSA]
RewriteRule ^furniture/detail-(\d+).html$ index.php?service=furniture&template=detail&id=$1 [NC,QSA]
RewriteRule ^furniture/cart.html$ index.php?service=furniture&template=cart [NC,QSA]
RewriteRule ^furniture/confirm-order.html$ index.php?service=furniture&template=confirm-order [NC,QSA]
RewriteRule ^furniture/pay.html$ index.php?service=furniture&template=pay [NC,QSA]
RewriteRule ^furniture/payreturn-(\w+).html$ index.php?service=furniture&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^furniture/news.html$ index.php?service=furniture&template=news [NC,QSA]
RewriteRule ^furniture/news-(\d+).html$ index.php?service=furniture&template=news&typeid=$1 [NC,QSA]
RewriteRule ^furniture/news-(\d+)-(\d+).html$ index.php?service=furniture&template=news&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^furniture/news-detail-(\d+).html$ index.php?service=furniture&template=news-detail&id=$1 [NC,QSA]
RewriteRule ^furniture/category.html$ index.php?service=furniture&template=category [NC,QSA]

#商城系统
RewriteRule ^shop/index.html$ index.php?service=shop [NC,QSA]
RewriteRule ^shop/?$ index.php?service=shop [NC,QSA]
RewriteRule ^shop/brand.html$ index.php?service=shop&template=brand [NC,QSA]
RewriteRule ^shop/brand-(\d+).html$ index.php?service=shop&template=brand&typeid=$1 [NC,QSA]
RewriteRule ^shop/brand-(\d+)-(\d+).html$ index.php?service=shop&template=brand&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^shop/brand-detail-(\d+).html$ index.php?service=shop&template=brand-detail&id=$1 [NC,QSA]
RewriteRule ^shop/brand-detail-(\d+)-(\d+).html$ index.php?service=shop&template=brand-detail&id=$1&typeid=$2 [NC,QSA]
RewriteRule ^shop/brand-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=shop&template=brand-detail&id=$1&typeid=$2&page=$3 [NC,QSA]
RewriteRule ^shop/store.html$ index.php?service=shop&template=store [NC,QSA]
RewriteRule ^shop/store-(\d+).html$ index.php?service=shop&template=store&typeid=$1 [NC,QSA]
RewriteRule ^shop/store-(\d+)-(\d+).html$ index.php?service=shop&template=store&typeid=$1&addrid=$2 [NC,QSA]
RewriteRule ^shop/store-(\d+)-(\d+)-(\d+).html$ index.php?service=shop&template=store&typeid=$1&addrid=$2&business=$3 [NC,QSA]
RewriteRule ^shop/store-(\d+)-(\d+)-(\d+)-(\d+).html$ index.php?service=shop&template=store&typeid=$1&addrid=$2&business=$3&page=$4 [NC,QSA]
RewriteRule ^shop/store-detail-(\d+).html$ index.php?service=shop&template=store-detail&id=$1 [NC,QSA]
RewriteRule ^shop/store-detail-(\d+)-(\d+).html$ index.php?service=shop&template=store-detail&id=$1&typeid=$2 [NC,QSA]
RewriteRule ^shop/store-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=shop&template=store-detail&id=$1&typeid=$2&page=$3 [NC,QSA]
RewriteRule ^shop/list.html$ index.php?service=shop&template=list [NC,QSA]
RewriteRule ^shop/detail-(\d+).html$ index.php?service=shop&template=detail&id=$1 [NC,QSA]
RewriteRule ^shop/cart.html$ index.php?service=shop&template=cart [NC,QSA]
RewriteRule ^shop/confirm-order.html$ index.php?service=shop&template=confirm-order [NC,QSA]
RewriteRule ^shop/pay.html$ index.php?service=shop&template=pay [NC,QSA]
RewriteRule ^shop/payreturn-(\w+).html$ index.php?service=shop&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^shop/news.html$ index.php?service=shop&template=news [NC,QSA]
RewriteRule ^shop/news-(\d+).html$ index.php?service=shop&template=news&typeid=$1 [NC,QSA]
RewriteRule ^shop/news-(\d+)-(\d+).html$ index.php?service=shop&template=news&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^shop/news-detail-(\d+).html$ index.php?service=shop&template=news-detail&id=$1 [NC,QSA]
RewriteRule ^shop/category.html$ index.php?service=shop&template=category [NC,QSA]


#建材门户
RewriteRule ^build/index.html$ index.php?service=build [NC,QSA]
RewriteRule ^build/?$ index.php?service=build [NC,QSA]
RewriteRule ^build/brand.html$ index.php?service=build&template=brand [NC,QSA]
RewriteRule ^build/brand-(\d+).html$ index.php?service=build&template=brand&typeid=$1 [NC,QSA]
RewriteRule ^build/brand-(\d+)-(\d+).html$ index.php?service=build&template=brand&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^build/brand-detail-(\d+).html$ index.php?service=build&template=brand-detail&id=$1 [NC,QSA]
RewriteRule ^build/brand-detail-(\d+)-(\d+).html$ index.php?service=build&template=brand-detail&id=$1&typeid=$2 [NC,QSA]
RewriteRule ^build/brand-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=build&template=brand-detail&id=$1&typeid=$2&page=$3 [NC,QSA]
RewriteRule ^build/store.html$ index.php?service=build&template=store [NC,QSA]
RewriteRule ^build/store-(\d+).html$ index.php?service=build&template=store&typeid=$1 [NC,QSA]
RewriteRule ^build/store-(\d+)-(\d+).html$ index.php?service=build&template=store&typeid=$1&addrid=$2 [NC,QSA]
RewriteRule ^build/store-(\d+)-(\d+)-(\d+).html$ index.php?service=build&template=store&typeid=$1&addrid=$2&business=$3 [NC,QSA]
RewriteRule ^build/store-(\d+)-(\d+)-(\d+)-(\d+).html$ index.php?service=build&template=store&typeid=$1&addrid=$2&business=$3&page=$4 [NC,QSA]
RewriteRule ^build/store-detail-(\d+).html$ index.php?service=build&template=store-detail&id=$1 [NC,QSA]
RewriteRule ^build/store-detail-(\d+)-(\d+).html$ index.php?service=build&template=store-detail&id=$1&page=$2 [NC,QSA]
RewriteRule ^build/list.html$ index.php?service=build&template=list [NC,QSA]
RewriteRule ^build/detail-(\d+).html$ index.php?service=build&template=detail&id=$1 [NC,QSA]
RewriteRule ^build/cart.html$ index.php?service=build&template=cart [NC,QSA]
RewriteRule ^build/confirm-order.html$ index.php?service=build&template=confirm-order [NC,QSA]
RewriteRule ^build/pay.html$ index.php?service=build&template=pay [NC,QSA]
RewriteRule ^build/payreturn-(\w+).html$ index.php?service=build&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^build/news.html$ index.php?service=build&template=news [NC,QSA]
RewriteRule ^build/news-(\d+).html$ index.php?service=build&template=news&typeid=$1 [NC,QSA]
RewriteRule ^build/news-(\d+)-(\d+).html$ index.php?service=build&template=news&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^build/news-detail-(\d+).html$ index.php?service=build&template=news-detail&id=$1 [NC,QSA]
RewriteRule ^build/category.html$ index.php?service=build&template=category [NC,QSA]

#房产门户
RewriteRule ^house/index.html$ index.php?service=house [NC,QSA]
RewriteRule ^house/?$ index.php?service=house [NC,QSA]

# 楼盘
RewriteRule ^house/loupan.html$ index.php?service=house&template=loupan [NC,QSA]
RewriteRule ^house/loupan-detail-(\d+).html$ index.php?service=house&template=loupan-detail&id=$1 [NC,QSA]
RewriteRule ^house/loupan-info-(\d+).html$ index.php?service=house&template=loupan-info&id=$1 [NC,QSA]
RewriteRule ^house/loupan-hx-(\d+).html$ index.php?service=house&template=loupan-hx&id=$1 [NC,QSA]
RewriteRule ^house/loupan-hx-(\d+)-(\d+).html$ index.php?service=house&template=loupan-hx&id=$1&room=$2 [NC,QSA]
RewriteRule ^house/loupan-hx-detail-(\d+)-(\d+).html$ index.php?service=house&template=loupan-hx-detail&id=$1&aid=$2 [NC,QSA]
RewriteRule ^house/loupan-album-(\d+).html$ index.php?service=house&template=loupan-album&id=$1 [NC,QSA]
RewriteRule ^house/loupan-album-(\d+)-(\d+).html$ index.php?service=house&template=loupan-album&id=$1&album=$2 [NC,QSA]
RewriteRule ^house/loupan-album-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=house&template=loupan-album-detail&id=$1&aid=$2&page=$3 [NC,QSA]
RewriteRule ^house/loupan-qj-(\d+).html$ index.php?service=house&template=loupan-qj&id=$1 [NC,QSA]
RewriteRule ^house/loupan-qj-detail-(\d+)-(\d+).html$ index.php?service=house&template=loupan-qj-detail&id=$1&aid=$2 [NC,QSA]
RewriteRule ^house/loupan-news-(\d+).html$ index.php?service=house&template=loupan-news&id=$1 [NC,QSA]
RewriteRule ^house/loupan-news-(\d+)-(\d+).html$ index.php?service=house&template=loupan-news&id=$1&page=$2 [NC,QSA]
RewriteRule ^house/loupan-news-detail-(\d+)-(\d+).html$ index.php?service=house&template=loupan-news-detail&id=$1&aid=$2 [NC,QSA]
RewriteRule ^house/loupan-(.*).html$ index.php?service=house&template=loupan&data=$1 [NC,QSA]

# 小区
RewriteRule ^house/community.html$ index.php?service=house&template=community [NC,QSA]
RewriteRule ^house/community-detail-(\d+).html$ index.php?service=house&template=community-detail&id=$1 [NC,QSA]
RewriteRule ^house/community-hx-(\d+).html$ index.php?service=house&template=community-hx&id=$1 [NC,QSA]
RewriteRule ^house/community-hx-(\d+)-(\d+).html$ index.php?service=house&template=community-hx&id=$1&room=$2 [NC,QSA]
RewriteRule ^house/community-hx-detail-(\d+)-(\d+).html$ index.php?service=house&template=community-hx-detail&id=$1&aid=$2 [NC,QSA]
RewriteRule ^house/community-album-(\d+).html$ index.php?service=house&template=community-album&id=$1 [NC,QSA]
RewriteRule ^house/community-album-(\d+)-(\d+).html$ index.php?service=house&template=community-album&id=$1&album=$2 [NC,QSA]
RewriteRule ^house/community-album-detail-(\d+)-(\d+)-(\d+).html$ index.php?service=house&template=community-album-detail&id=$1&aid=$2&page=$3 [NC,QSA]
RewriteRule ^house/community-sale-(\d+).html$ index.php?service=house&template=community-sale&id=$1 [NC,QSA]
RewriteRule ^house/community-sale-(\d+)-(\d+).html$ index.php?service=house&template=community-sale&id=$1&page=$2 [NC,QSA]
RewriteRule ^house/community-zu-(\d+).html$ index.php?service=house&template=community-zu&id=$1 [NC,QSA]
RewriteRule ^house/community-zu-(\d+)-(\d+).html$ index.php?service=house&template=community-zu&id=$1&page=$2 [NC,QSA]
RewriteRule ^house/community-(.*).html$ index.php?service=house&template=community&data=$1 [NC,QSA]

# 二手房
RewriteRule ^house/sale.html$ index.php?service=house&template=sale [NC,QSA]
RewriteRule ^house/sale-detail-(\d+).html$ index.php?service=house&template=sale-detail&id=$1 [NC,QSA]
RewriteRule ^house/sale-(.*).html$ index.php?service=house&template=sale&data=$1 [NC,QSA]

# 出租房
RewriteRule ^house/zu.html$ index.php?service=house&template=zu [NC,QSA]
RewriteRule ^house/zu-detail-(\d+).html$ index.php?service=house&template=zu-detail&id=$1 [NC,QSA]
RewriteRule ^house/zu-(.*).html$ index.php?service=house&template=zu&data=$1 [NC,QSA]

# 写字楼
RewriteRule ^house/xzl.html$ index.php?service=house&template=xzl [NC,QSA]
RewriteRule ^house/xzl-detail-(\d+).html$ index.php?service=house&template=xzl-detail&id=$1 [NC,QSA]
RewriteRule ^house/xzl-(.*).html$ index.php?service=house&template=xzl&data=$1 [NC,QSA]

# 商铺
RewriteRule ^house/sp.html$ index.php?service=house&template=sp [NC,QSA]
RewriteRule ^house/sp-detail-(\d+).html$ index.php?service=house&template=sp-detail&id=$1 [NC,QSA]
RewriteRule ^house/sp-(.*).html$ index.php?service=house&template=sp&data=$1 [NC,QSA]

# 厂房/仓库
RewriteRule ^house/cf.html$ index.php?service=house&template=cf [NC,QSA]
RewriteRule ^house/cf-detail-(\d+).html$ index.php?service=house&template=cf-detail&id=$1 [NC,QSA]
RewriteRule ^house/cf-(.*).html$ index.php?service=house&template=cf&data=$1 [NC,QSA]

# 经纪人
RewriteRule ^house/broker.html$ index.php?service=house&template=broker [NC,QSA]
RewriteRule ^house/broker-(\d+).html$ index.php?service=house&template=broker&addrid=$1 [NC,QSA]
RewriteRule ^house/broker-(\d+)-(\d+).html$ index.php?service=house&template=broker&addrid=$1&business=$2 [NC,QSA]
RewriteRule ^house/broker-(\d+)-(\d+)-(\d+).html$ index.php?service=house&template=broker&addrid=$1&business=$2&page=$3 [NC,QSA]
RewriteRule ^house/broker-detail-(\d+).html$ index.php?service=house&template=broker-detail&id=$1 [NC,QSA]
RewriteRule ^house/broker-detail-(\d+)-(\w+).html$ index.php?service=house&template=broker-detail&id=$1&tpl=$2 [NC,QSA]
RewriteRule ^house/broker-detail-(\d+)-(\w+)-(\d+).html$ index.php?service=house&template=broker-detail&id=$1&tpl=$2&page=$3 [NC,QSA]

# 中介公司
RewriteRule ^house/store.html$ index.php?service=house&template=store [NC,QSA]
RewriteRule ^house/store-detail-(\d+).html$ index.php?service=house&template=store-detail&id=$1 [NC,QSA]
RewriteRule ^house/store-detail-(\w+)-(\d+).html$ index.php?service=house&template=store-detail&tpl=$1&id=$2 [NC,QSA]
RewriteRule ^house/store-detail-(\w+)-(\d+)-(.*).html$ index.php?service=house&template=store-detail&tpl=$1&id=$2&data=$3 [NC,QSA]
RewriteRule ^house/store-(.*).html$ index.php?service=house&template=store&data=$1 [NC,QSA]

# 资讯
RewriteRule ^house/news.html$ index.php?service=house&template=news [NC,QSA]
RewriteRule ^house/news-(\d+).html$ index.php?service=house&template=news&typeid=$1 [NC,QSA]
RewriteRule ^house/news-(\d+)-(\d+).html$ index.php?service=house&template=news&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^house/news-detail-(\d+).html$ index.php?service=house&template=news-detail&id=$1 [NC,QSA]

# 贷款计算器
RewriteRule ^house/calculator-sy.html$ index.php?service=house&template=calculator&do=sy [NC,QSA]
RewriteRule ^house/calculator-gjj.html$ index.php?service=house&template=calculator&do=gjj [NC,QSA]
RewriteRule ^house/calculator-zh.html$ index.php?service=house&template=calculator&do=zh [NC,QSA]

# 地图搜索
RewriteRule ^house/map-loupan.html$ index.php?service=house&template=map&do=loupan [NC,QSA]
RewriteRule ^house/map-sale.html$ index.php?service=house&template=map&do=sale [NC,QSA]
RewriteRule ^house/map-zu.html$ index.php?service=house&template=map&do=zu [NC,QSA]

# 订阅
RewriteRule ^house/dingy.html$ index.php?service=house&template=dingy [NC,QSA]

# 问答
RewriteRule ^house/faq.html$ index.php?service=house&template=faq [NC,QSA]
RewriteRule ^house/faq-(\d+).html$ index.php?service=house&template=faq&typeid=$1 [NC,QSA]
RewriteRule ^house/faq-detail-(\d+).html$ index.php?service=house&template=faq-detail&id=$1 [NC,QSA]

# 顾问
RewriteRule ^house/guwen.html$ index.php?service=house&template=guwen [NC,QSA]

# 看房团
RewriteRule ^house/kan.html$ index.php?service=house&template=kan [NC,QSA]

# 支付返回
RewriteRule ^house/payreturn-(\w+).html$ index.php?service=house&template=payreturn&ordernum=$1 [NC,QSA]

#团购秒杀
RewriteRule ^tuan/index.html$ index.php?service=tuan&template=changecity [NC,QSA]
RewriteRule ^tuan/?$ index.php?service=tuan&template=changecity [NC,QSA]
RewriteRule ^tuan/(\w+)/index.html$ index.php?service=tuan&city=$1 [NC,QSA]
RewriteRule ^tuan/(\w+)/?$ index.php?service=tuan&city=$1 [NC,QSA]
RewriteRule ^tuan/(\w+)/list.html$ index.php?service=tuan&city=$1&template=list [NC,QSA]
RewriteRule ^tuan/(\w+)/list-(\d+).html$ index.php?service=tuan&city=$1&template=list&typeid=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/list-(\d+)-(\d+).html$ index.php?service=tuan&city=$1&template=list&typeid=$2&addrid=$3 [NC,QSA]
RewriteRule ^tuan/(\w+)/list-(\d+)-(\d+)-(\d+).html$ index.php?service=tuan&city=$1&template=list&typeid=$2&addrid=$3&business=$4 [NC,QSA]
RewriteRule ^tuan/(\w+)/list-(\d+)-(\d+)-(\d+)-(\d+).html$ index.php?service=tuan&city=$1&template=list&typeid=$2&addrid=$3&business=$4&subway=$5 [NC,QSA]
RewriteRule ^tuan/(\w+)/list-(\d+)-(\d+)-(\d+)-(\d+)-(\d+).html$ index.php?service=tuan&city=$1&template=list&typeid=$2&addrid=$3&business=$4&subway=$5&station=$6 [NC,QSA]
RewriteRule ^tuan/(\w+)/detail-(\d+).html$ index.php?service=tuan&city=$1&template=detail&id=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/pic-(\d+).html$ index.php?service=tuan&city=$1&template=pic&id=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/review-(\d+).html$ index.php?service=tuan&city=$1&template=review&id=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/new.html$ index.php?service=tuan&city=$1&template=new [NC,QSA]
RewriteRule ^tuan/(\w+)/new-(\d+).html$ index.php?service=tuan&city=$1&template=new&typeid=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/store-(\d+).html$ index.php?service=tuan&city=$1&template=store&uid=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/buy-(\d+)-(\d+).html$ index.php?service=tuan&city=$1&template=buy&id=$2&count=$3 [NC,QSA]
RewriteRule ^tuan/(\w+)/cart.html$ index.php?service=tuan&city=$1&template=cart [NC,QSA]
RewriteRule ^tuan/(\w+)/editorder.html$ index.php?service=tuan&city=$1&template=editorder [NC,QSA]
RewriteRule ^tuan/(\w+)/pay.html$ index.php?service=tuan&city=$1&template=pay [NC,QSA]
RewriteRule ^tuan/(\w+)/payreturn-(\w+).html$ index.php?service=tuan&city=$1&template=payreturn&ordernum=$2 [NC,QSA]
RewriteRule ^tuan/(\w+)/sj-detail.html$ index.php?service=tuan&city=$1&template=sj-detail [NC,QSA]
RewriteRule ^tuan/(\w+)/tdetail.html$ index.php?service=tuan&city=$1&template=tdetail [NC,QSA]
RewriteRule ^tuan/(\w+)/picture-slide.html$ index.php?service=tuan&city=$1&template=picture-slide [NC,QSA]
RewriteRule ^tuan/(\w+)/judge.html$ index.php?service=tuan&city=$1&template=judge [NC,QSA]
RewriteRule ^tuan/(\w+)/tbuy.html$ index.php?service=tuan&city=$1&template=tbuy [NC,QSA]
RewriteRule ^tuan/(\w+)/sj-pic.html$ index.php?service=tuan&city=$1&template=sj-pic [NC,QSA]

#新闻资讯
RewriteRule ^article/index.html$ index.php?service=article [NC,QSA]
RewriteRule ^article/?$ index.php?service=article [NC,QSA]
RewriteRule ^article/(.*)/index.html$ index.php?service=article&template=list&pinyin=$1 [NC,QSA]
RewriteRule ^article/(?!.*php)(?!.*html)(.*)/?$ index.php?service=article&template=list&pinyin=$1 [NC,QSA]
RewriteRule ^article/detail-(\d+).html$ index.php?service=article&template=detail&id=$1 [NC,QSA]
RewriteRule ^article/comment-(\d+).html$ index.php?service=article&template=comment&id=$1 [NC,QSA]
RewriteRule ^article/payreturn-(\w+).html$ index.php?service=article&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^article/(.*)/(\d+).html$ index.php?service=article&template=detail&id=$2 [NC,QSA]
RewriteRule ^article/(.*)/detail-(\d+).html$ index.php?service=article&template=detail&id=$2 [NC,QSA]
RewriteRule ^article/search.html$ index.php?service=article&template=search [NC,QSA]

#同城活动
RewriteRule ^huodong/index.html$ index.php?service=huodong [NC,QSA]
RewriteRule ^huodong/?$ index.php?service=huodong [NC,QSA]
RewriteRule ^huodong/list.html$ index.php?service=huodong&template=list [NC,QSA]
RewriteRule ^huodong/list-(\d+).html$ index.php?service=huodong&template=list&typeid=$1 [NC,QSA]
RewriteRule ^huodong/detail-(\d+).html$ index.php?service=huodong&template=detail&id=$1 [NC,QSA]
RewriteRule ^huodong/business-(\d+).html$ index.php?service=huodong&template=business&id=$1 [NC,QSA]
RewriteRule ^huodong/fabu.html$ index.php?service=huodong&template=fabu [NC,QSA]
RewriteRule ^huodong/order-(\d+)-(\d+).html$ index.php?service=huodong&template=order&id=$1&fid=$2 [NC,QSA]
RewriteRule ^huodong/payreturn-(\w+).html$ index.php?service=huodong&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^huodong/search.html$ index.php?service=huodong&template=search [NC,QSA]

#图说新闻
RewriteRule ^image/index.html$ index.php?service=image [NC,QSA]
RewriteRule ^image/?$ index.php?service=image [NC,QSA]
RewriteRule ^image/list-(\d+).html$ index.php?service=image&template=list&typeid=$1 [NC,QSA]
RewriteRule ^image/list-(\d+)-(\d+).html$ index.php?service=image&template=list&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^image/search.html$ index.php?service=image&template=search [NC,QSA]
RewriteRule ^image/detail-(\d+).html$ index.php?service=image&template=detail&id=$1 [NC,QSA]
RewriteRule ^image/(.*)/(\d+).html$ index.php?service=image&template=detail&id=$2 [NC,QSA]
RewriteRule ^image/(.*)/detail-(\d+).html$ index.php?service=image&template=detail&id=$2 [NC,QSA]

#分类信息
RewriteRule ^info/index.html$ index.php?service=info [NC,QSA]
RewriteRule ^info/?$ index.php?service=info [NC,QSA]
RewriteRule ^info/list.html$ index.php?service=info&template=list [NC,QSA]
RewriteRule ^info/list-(\d+).html$ index.php?service=info&template=list&typeid=$1 [NC,QSA]
RewriteRule ^info/detail-(\d+).html$ index.php?service=info&template=detail&id=$1 [NC,QSA]
RewriteRule ^info/fabu.html$ index.php?service=info&template=fabu [NC,QSA]
RewriteRule ^info/fabu-write-(\d+).html$ index.php?service=info&template=fabu&dopost=write&typeid=$1 [NC,QSA]
RewriteRule ^info/fabu-ok-(\d+)-(\d+).html$ index.php?service=info&template=fabu&dopost=ok&typeid=$1&id=$2 [NC,QSA]
RewriteRule ^info/store-(\d+).html$ index.php?service=info&template=store&id=$1 [NC,QSA]
RewriteRule ^info/payreturn-(\w+).html$ index.php?service=info&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^info/mobilehistory.html$ index.php?service=info&template=mobilehistory [NC,QSA]

#贴吧社区
RewriteRule ^tieba/index.html$ index.php?service=tieba [NC,QSA]
RewriteRule ^tieba/?$ index.php?service=tieba [NC,QSA]
RewriteRule ^tieba/list-(\d+).html$ index.php?service=tieba&template=list&typeid=$1 [NC,QSA]
RewriteRule ^tieba/detail-(\d+).html$ index.php?service=tieba&template=detail&id=$1 [NC,QSA]
RewriteRule ^tieba/fabu.html$ index.php?service=tieba&template=fabu [NC,QSA]
RewriteRule ^tieba/reward.html$ index.php?service=tieba&template=reward [NC,QSA]
RewriteRule ^tieba/comment.html$ index.php?service=tieba&template=comment [NC,QSA]
RewriteRule ^tieba/payreturn-(\w+).html$ index.php?service=tieba&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^tieba/reward-(\d+).html$ index.php?service=tieba&template=reward&id=$1 [NC,QSA]

#电子报刊
RewriteRule ^paper/index.html$ index.php?service=paper [NC,QSA]
RewriteRule ^paper/?$ index.php?service=paper [NC,QSA]
RewriteRule ^paper/list-(\d+).html$ index.php?service=paper&template=list&id=$1 [NC,QSA]
RewriteRule ^paper/forum-(\d+).html$ index.php?service=paper&template=forum&id=$1 [NC,QSA]
RewriteRule ^paper/content-(\d+).html$ index.php?service=paper&template=content&id=$1 [NC,QSA]

#便民黄页
RewriteRule ^huangye/index.html$ index.php?service=huangye [NC,QSA]
RewriteRule ^huangye/?$ index.php?service=huangye [NC,QSA]
RewriteRule ^huangye/list.html$ index.php?service=huangye&template=list [NC,QSA]
RewriteRule ^huangye/list-(.*).html$ index.php?service=huangye&template=list&data=$1 [NC,QSA]
RewriteRule ^huangye/detail-(\d+).html$ index.php?service=huangye&template=detail&id=$1 [NC,QSA]

#视频频道
RewriteRule ^video/index.html$ index.php?service=video [NC,QSA]
RewriteRule ^video/?$ index.php?service=video [NC,QSA]
RewriteRule ^video/list.html$ index.php?service=video&template=list [NC,QSA]
RewriteRule ^video/list-(\d+).html$ index.php?service=video&template=list&typeid=$1 [NC,QSA]
RewriteRule ^video/list-(\d+)-(\d+).html$ index.php?service=video&template=list&typeid=$1&page=$2 [NC,QSA]
RewriteRule ^video/search.html$ index.php?service=video&template=search [NC,QSA]
RewriteRule ^video/detail-(\d+).html$ index.php?service=video&template=detail&id=$1 [NC,QSA]
RewriteRule ^video/comment-(\d+).html$ index.php?service=video&template=comment&id=$1 [NC,QSA]
RewriteRule ^video/payreturn-(\w+).html$ index.php?service=video&template=payreturn&ordernum=$1 [NC,QSA]
RewriteRule ^video/(.*)/(\d+).html$ index.php?service=video&template=detail&id=$2 [NC,QSA]
RewriteRule ^video/(.*)/detail-(\d+).html$ index.php?service=video&template=detail&id=$2 [NC,QSA]

#自助建站
RewriteRule ^website/index.html$ index.php?service=website [NC,QSA]
RewriteRule ^website/?$ index.php?service=website [NC,QSA]
RewriteRule ^website/templates.html$ index.php?service=website&template=templates [NC,QSA]
RewriteRule ^website/design.html$ index.php?service=website&template=design [NC,QSA]
RewriteRule ^website/market.html$ index.php?service=website&template=market [NC,QSA]
RewriteRule ^website/shop.html$ index.php?service=website&template=shop [NC,QSA]
RewriteRule ^website/mobile-market.html$ index.php?service=website&template=mobile-market [NC,QSA]
RewriteRule ^website/personal.html$ index.php?service=website&template=personal [NC,QSA]
RewriteRule ^website/standard.html$ index.php?service=website&template=standard [NC,QSA]
RewriteRule ^website/templates-(\d+).html$ index.php?service=website&template=templates&typeid=$1 [NC,QSA]
RewriteRule ^website/preview(\d+)/?$ website.php?type=template&id=$1&alias=index [NC,QSA]
RewriteRule ^website/preview(\d+)/(.*).html$ website.php?type=template&id=$1&alias=$2 [NC,QSA]
RewriteRule ^website/site(\d+)/?$ website.php?id=$1&alias=index [NC,QSA]
RewriteRule ^website/site(\d+)/(.*).html$ website.php?id=$1&alias=$2 [NC,QSA]
评价: 这个问题有价值吗?  没有 (0分)   有, 感谢 (0分)
2017-10-09 10:48:42 1

kint7669
铜牌会员
545.23 价值分

这一大串看这头都晕了,,,
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2017-10-09 13:00:07 2

amysql
创始人
96731.22 价值分

这么多规则,建议直接用lamp环境。
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2017-10-10 15:50:12 3

pc865
铁牌会员
4.00 价值分

马上双十一;打算更换一个服务器;求更换授权方法
之前的授权;2018年才到期;
我现在买一个ecs服务器后安装amh;
如果显示未授权;我需要怎么做?
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2017-10-15 12:10:14 4

kint7669
铜牌会员
545.23 价值分

引用:
pc865 发表于 2017-10-15 12:10:14
马上双十一;打算更换一个服务器;求更换授权方法
之前的授权;2018年才到期;
我现在买一个ecs服务器后安装amh;
如果显示未授权;我需要怎么做?



提交工单更换IP即可。
评价: 这个答复有价值吗?  没有 (0分)   有, 感谢 (0分)
回复  2017-10-15 13:46:17 5
 1  (总1页)
AMH社区列表
旅客不可参与帖子, 请您先登录
用户服务中心