RewriteEngine On
#家居首页
RewriteRule ^$ /index.php?act=jj_index&task=index
#案例首页
RewriteRule anli/?$ /index.php?act=jj_anli&task=index
#3D案例展示页
RewriteRule anli/3d/([1-9]+[0-9]*).html$ /index.php?act=jj_anli&task=detial3d&id=$1
#3D列表页
RewriteRule anli/3d/(.*)/?$ /index.php?act=jj_anli&task=list3d&_getstr=$1
#图片案例详细页
RewriteRule anli/pic/([1-9]+[0-9]*).html$ /index.php?act=jj_anli&task=detialpic&id=$1
#图片案例列表
RewriteRule anli/pic/(.*)/?$ /index.php?act=jj_anli&task=listpic&_getstr=$1
#图片案例地图列表页
RewriteRule anli/map/(.*)/?$ /index.php?act=jj_anli&task=listpicmap&_getstr=$1
#找公司首页
RewriteRule company/?$ /index.php?act=jj_com&task=index
#找公司列表
RewriteRule company/list/(.*)/?$ /index.php?act=jj_com&task=clist&_getstr=$1
#找设计师列表
RewriteRule designer/list/(.*)/?$ /index.php?act=jj_com&task=slist&_getstr=$1
#学装修首页
RewriteRule xzx/?$ /index.php?act=jj_xuezhuxiu&task=index
#装修学堂首页
RewriteRule xzx/xuetang/?$ /index.php?act=jj_xuezhuxiu&task=tangindex
#装修学堂列表页
RewriteRule xzx/xuetang/list_([a-zA-Z0-9_]*)/?$ /index.php?&act=jj_xuezhuxiu&task=tanglist&_getstr=$1
#装修学堂最终页
RewriteRule xzx/xuetang/([1-9]+[0-9]*)_([1-9]+[0-9]*).html$ /index.php?&act=jj_xuezhuxiu&task=tangend&id=$1&pageno=$2
#家居资讯首页
RewriteRule news/newsdt/?$ /index.php?act=jj_news&task=newsdt
RewriteRule news/?$ /index.php?act=jj_news&task=index
RewriteRule news/cuxiao_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=cuxiao&tid=$1
RewriteRule news/cuxiao_nowing_([a-zA-Z]*)_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=cuxiao&nowing=$1&tid=$2
RewriteRule news/cuxiao_nowing_([a-zA-Z]*)_order_([a-zA-Z]*)_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=cuxiao&nowing=$1&order=$2&tid=$3
RewriteRule news/cuxiao_nowing_([a-zA-Z]*)_order_([a-zA-Z]*)_p_([1-9]+[0-9]*)_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=cuxiao&nowing=$1&order=$2&page=$3&tid=$4
RewriteRule news/list_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=newslist&tid=$1
RewriteRule news/list_tid_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=newslist&tid=$1
RewriteRule news/list_tid_([1-9]+[0-9]*)_p_([1-9]+[0-9]*)/?$ /index.php?act=jj_news&task=newslist&tid=$1&page=$2
RewriteRule news/view_([1-9]+[0-9]*)_([1-9]+[0-9]*).html$ /index.php?act=jj_news&task=show&id=$1&page=$2
#用户预约设计师(必须放在公司和设计师主页的上面)
RewriteRule designer/([1-9]+[0-9]*)/order/?$ /index.php?act=useryuyue&task=index&did=$1
#用户预约公司(必须放在公司和设计师主页的上面)
RewriteRule company/([1-9]+[0-9]*)/order/?$ /index.php?act=useryuyue&task=index&cid=$1
#用户预约
RewriteRule yuyue/?$ /index.php?act=useryuyueks&task=detail
RewriteRule yuyue_yyid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks&task=detail&yyid=$1
RewriteRule yuyue_cid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks&task=detail&cid=$1
RewriteRule yuyue_did_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks&task=detail&did=$1
RewriteRule yuyueks/?$ /index.php?act=useryuyueks&task=detailfast
RewriteRule yuyueks_yyid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks&task=detailfast&yyid=$1
RewriteRule yuyuesucc/?$ /index.php?act=useryuyueks&task=success
RewriteRule yuyuelm/?$ /index.php?act=useryuyueks_union&task=detail
RewriteRule yuyuelm_yyid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks_union&task=detail&yyid=$1
RewriteRule yuyuelm_cid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks_union&task=detail&cid=$1
RewriteRule yuyuelm_did_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks_union&task=detail&did=$1
RewriteRule yuyuelmks/?$ /index.php?act=useryuyueks_union&task=detailfast
RewriteRule yuyuelmks_yyid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks_union&task=detailfast&yyid=$1
RewriteRule yuyuelmsucc/?$ /index.php?act=useryuyueks_union&task=success
RewriteRule yuyuelmsucccomp/?$ /index.php?act=useryuyueks_union&task=successcomp
RewriteRule yuyuelmsucccomp_([a-zA-Z0-9_]*)/?$ /index.php?act=useryuyueks_union&task=successcomp&_getstr=$1
#RewriteRule yuyuelmsucccomp_cid_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks_union&task=successcomp&cid=$1
#RewriteRule yuyuelmsucccomp_did_([1-9]+[0-9]*)/?$ /index.php?act=useryuyueks_union&task=successcomp&did=$1
#联盟
RewriteRule zxlm/?$ /index.php?act=jj_zxunion&task=index
RewriteRule zxlm_yuyueid_([1-9]+[0-9]*)/?$ /index.php?act=jj_zxunion&task=index&yuyueId=$1
RewriteRule zxlm_a_zxlianmeng_invite_uid_([0-9]*)_hash_([a-zA-Z0-9]+)$ /index.php?act=jj_zxunion&a=zxlianmeng_invite&uid=$1&hash=$2
RewriteRule zxlmyq/?$ /index.php?act=jj_zxunion&task=invite
RewriteRule zxlmjs/?$ /index.php?act=jj_zxunion&task=intro
#公司个人主页
RewriteRule company/([1-9]+[0-9]*)/?$ /index.php?act=jj_showcom&task=index&id=$1
#公司信息介绍
RewriteRule company/([1-9]+[0-9]*)/info/?$ /index.php?act=jj_showcom&task=info&id=$1
#公司案例
RewriteRule company/([1-9]+[0-9]*)/case/?$ /index.php?act=jj_showcom&task=showanli&id=$1
#公司案例分页
RewriteRule company/([1-9]+[0-9]*)/case/p_([1-9]+[0-9]*)/?$ /index.php?act=jj_showcom&task=showanli&id=$1&p=$2
#公司案例指定楼盘
RewriteRule company/([1-9]+[0-9]*)/case/key_(.+)$ /index.php?act=jj_showcom&task=showanli&id=$1&key=$2
#公司案例指定楼盘分页
RewriteRule company/([1-9]+[0-9]*)/case/p_([1-9]+[0-9]*)_key_(.+)$ /index.php?act=jj_showcom&task=showanli&id=$1&p=$2&key=$3
#公司案例指定楼盘
RewriteRule company/([1-9]+[0-9]*)/case/(.+)$ /index.php?act=jj_showcom&task=showanli&id=$1&key=$2
#设计团队
RewriteRule company/([1-9]+[0-9]*)/team_([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showcom&task=shejishow&id=$1&_getstr=$2
#设计团队分页
RewriteRule company/([1-9]+[0-9]*)/team/?$ /index.php?act=jj_showcom&task=shejishow&id=$1
#联系我们
RewriteRule company/([1-9]+[0-9]*)/contact/?$ /index.php?act=jj_showcom&task=contract&id=$1
#留言评论
RewriteRule company/([1-9]+[0-9]*)/comment/?$ /index.php?act=jj_showcom&task=comment&id=$1
#留言评论分页
RewriteRule company/([1-9]+[0-9]*)/comment_([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showcom&task=comment&id=$1&_getstr=$2
#公司主页分页(需要放到这类的下面,否则影响别人)
RewriteRule company/([1-9]+[0-9]*)/([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showcom&task=index&id=$1&_getstr=$2
#设计师个人主页
RewriteRule designer/([1-9]+[0-9]*)/?$ /index.php?act=jj_showsheji&task=index&id=$1
#设计师作品
RewriteRule designer/([1-9]+[0-9]*)/case/?$ /index.php?act=jj_showsheji&task=anli&id=$1
#作品分页
RewriteRule designer/([1-9]+[0-9]*)/case/([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showsheji&task=anli&id=$1&_getstr=$2
#设计师博客
RewriteRule designer/([1-9]+[0-9]*)/blog/?$ /index.php?act=jj_showsheji&task=blog&id=$1
#设计师博客分页
RewriteRule designer/([1-9]+[0-9]*)/blog/([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showsheji&task=blog&id=$1&_getstr=$2
#设计师博客展示页
RewriteRule designer/([1-9]+[0-9]*)/blog/([1-9]+[0-9]*).html$ /index.php?act=jj_showsheji&task=blogdetail&id=$1&tid=$2
#设计师博客评论分页
RewriteRule designer/([1-9]+[0-9]*)/blog/([1-9]+[0-9]*)_([1-9]+[0-9]*).html$ /index.php?act=jj_showsheji&task=blogdetail&id=$1&tid=$2&p=$3
#个人资料
RewriteRule designer/([1-9]+[0-9]*)/info/?$ /index.php?act=jj_showsheji&task=details&id=$1
#留言评论
RewriteRule designer/([1-9]+[0-9]*)/comment/?$ /index.php?act=jj_showsheji&task=comment&id=$1
#评论分页
RewriteRule designer/([1-9]+[0-9]*)/comment/([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showsheji&task=comment&id=$1&_getstr=$2
#设计师个人主页分页(需要放到这类的下面,否则影响别人)
RewriteRule designer/([1-9]+[0-9]*)/([a-zA-Z0-9_]*)/?$ /index.php?act=jj_showsheji&task=index&id=$1&_getstr=$2
#专题
RewriteRule zt([1-9]+[0-9]*)/?$ /index.php?act=jj_topic&task=show&id=$1
#推广页
RewriteRule jj/?$ /index.php?act=jj_tuiguang