产品服务AMH 免费服务器主机面板SSL证书 免费SSL证书申请 担保单 免费安全、零费率交易平台编程助手免费智能写代码、翻译AMYSQL 免费MySQL管理工具

AMH 社区首页

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

[求助帖] 求伪静态规则,博客wp程序

六度
铁牌会员
31.00 价值分

六度 发表于 2014-09-18 21:54:03
.htaccess规则如下
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On


#禁止访问 View
RewriteRule (.*)/?View/(.*)?.html$ - [F]

#我的首页
RewriteRule ^/?shop_/(.*)?$ index.php/shop/index/index/$1 [L]
RewriteRule ^/?shop$ index.php/shop/index/index [L]
RewriteRule ^/?goods/([0-9]+)((/|.).*)?$ index.php/shop/index/goods/category_id/$1$2 [L]
RewriteRule ^/?goods_/(.*)?$ index.php/shop/index/goods/$1 [L]
RewriteRule ^/?goods$ index.php/shop/index/goods [L]
RewriteRule ^/?goods/detail_([0-9]+)((/|.).*)?$ index.php/shop/index/goodsdetail/id/$1$2 [L]
RewriteRule ^/?mygoods/([0-9]+)((/|.).*)?$ index.php/shop/index/mygoods/status/$1$2 [L]
RewriteRule ^/?mygoods_/(.*)?$ index.php/shop/index/mygoods/$1 [L]
RewriteRule ^/?mygoods$ index.php/shop/index/mygoods [L]

#活动
RewriteRule ^/?event/([0-9]+)((/|.).*)?$ index.php/event/index/index/type_id/$1$2 [L]
RewriteRule ^/?event_/(.*)?$ index.php/event/index/index/$1 [L]
RewriteRule ^/?event$ index.php/event/index/index [L]
RewriteRule ^/?myevent/([0-9]+)((/|.).*)?$ index.php/event/index/myevent/type_id/$1$2 [L]
RewriteRule ^/?myevent_/(.*)?$ index.php/event/index/myevent/$1 [L]
RewriteRule ^/?myevent$ index.php/event/index/myevent [L]
RewriteRule ^/?event/detail_([0-9]+)((/|.).*)?$ index.php/event/index/detail/id/$1$2 [L]
RewriteRule ^/?event/member_([0-9]+)((/|.).*)?$ index.php/event/index/member/id/$1$2 [L]
RewriteRule ^/?event/edit_([0-9]+)((/|.).*)?$ index.php/event/index/edit/id/$1$2 [L]
RewriteRule ^/?event/add_/(.*)?$ index.php/event/index/add/$1 [L]
RewriteRule ^/?event/add$ index.php/event/index/add [L]

#专辑
RewriteRule ^/?issue/([0-9]+)((/|.).*)?$ index.php/issue/index/index/issue_id/$1$2 [L]
RewriteRule ^/?issue_/(.*)?$ index.php/issue/index/index/$1 [L]
RewriteRule ^/?issue$ index.php/issue/index/index [L]
RewriteRule ^/?issue/detail_([0-9]+)((/|.).*)?$ index.php/issue/index/issuecontentdetail/id/$1$2 [L]
RewriteRule ^/?issue/edit_([0-9]+)((/|.).*)?$ index.php/issue/index/edit/id/$1$2 [L]
RewriteRule ^/?issue/detail_/(.*)?$ index.php/issue/index/issuecontentdetail/$1 [L]
RewriteRule ^/?issue/edit_/(.*)?$ index.php/issue/index/edit/$1 [L]
RewriteRule ^/?issue/detail$ index.php/issue/index/issuecontentdetail [L]
RewriteRule ^/?issue/edit$ index.php/issue/index/edit [L]

#讨论区
RewriteRule ^/?forum/([0-9]+)/p_([0-9]+)((/|.).*)?$ index.php/forum/index/forum/id/$1/page/$2$3 [L]
RewriteRule ^/?forum/p_([0-9]+)((/|.).*)?$ index.php/forum/index/forum/page/$1$2 [L]
RewriteRule ^/?forum/([0-9]+)((/|.).*)?$ index.php/forum/index/forum/id/$1$2 [L]
RewriteRule ^/?forum_/(.*)?$ index.php/forum/index/forum/$1 [L]
RewriteRule ^/?forum$ index.php/forum/index/forum [L]
RewriteRule ^/?forum/edit_([0-9]+)/p_([0-9]+)((/|.).*)?$ index.php/forum/index/edit/forum_id/$1/post_id/$2$3 [L]
RewriteRule ^/?forum/editp_([0-9]+)((/|.).*)?$ index.php/forum/index/edit/post_id/$1$2 [L]
RewriteRule ^/?forum/edit_([0-9]+)((/|.).*)?$ index.php/forum/index/edit/forum_id/$1$2 [L]
RewriteRule ^/?forum/edit_/(.*)?$ index.php/forum/index/edit/$1 [L]
RewriteRule ^/?forum/edit$ index.php/forum/index/edit [L]
RewriteRule ^/?forum/detail_([0-9]+)((/|.).*)?$ index.php/forum/index/detail/id/$1$2 [L]
RewriteRule ^/?forum/detail_/(.*)?$ index.php/forum/index/detail/$1 [L]
RewriteRule ^/?forum/detail$ index.php/forum/index/detail [L]
RewriteRule ^/?forum/search_/(.*)?$ index.php/forum/index/search/$1 [L]
RewriteRule ^/?forum/search$ index.php/forum/index/search [L]

#资讯
RewriteRule ^/?blog_/(.*)?$ index.php/blog/index/index/$1 [L]
RewriteRule ^/?blog$ index.php/blog/index/index [L]
RewriteRule ^/?blog/list_([0-9]+)((/|.).*)?$ index.php/blog/article/lists/category/$1$2 [L]
RewriteRule ^/?blog/list_/(.*)?$ index.php/blog/article/lists/$1 [L]
RewriteRule ^/?blog/list$ index.php/blog/article/lists [L]
RewriteRule ^/?blog/detail_([0-9]+)((/|.).*)?$ index.php/blog/article/detail/id/$1$2 [L]
RewriteRule ^/?blog/detail_/(.*)?$ index.php/blog/article/detail/$1 [L]
RewriteRule ^/?blog/detail$
2014-09-18 21:54:03 1

六度
铁牌会员
31.00 价值分

#微博
RewriteRule ^/?weibo/p_([0-9]+)((/|.).*)?$ index.php/weibo/index/index/page/$1$2 [L]
RewriteRule ^/?weibo_/(.*)?$ index.php/weibo/index/index/$1 [L]
RewriteRule ^/?weibo$ index.php/weibo/index/index [L]
RewriteRule ^/?weibo/detail_([0-9]+)((/|.).*)?$ index.php/weibo/index/weibodetail/id/$1$2 [L]
RewriteRule ^/?weibo/detail_/(.*)?$ index.php/weibo/index/weibodetail/$1 [L]
RewriteRule ^/?weibo/detail$ index.php/weibo/index/weibodetail [L]
RewriteRule ^/?weibo/concerned_/(.*)?$ index.php/weibo/index/myconcerned/$1 [L]
RewriteRule ^/?weibo/concerned$ index.php/weibo/index/myconcerned [L]
RewriteRule ^/?weibo/search_/(.*)?$ index.php/weibo/index/search/$1 [L]
RewriteRule ^/?weibo/search$ index.php/weibo/index/search [L]

#用户中心
RewriteRule ^/?ucenter/([0-9]+)((/|.).*)?$ index.php/usercenter/index/index/uid/$1$2 [L]
RewriteRule ^/?ucenter_/(.*)?$ index.php/usercenter/index/index/$1 [L]
RewriteRule ^/?ucenter$ index.php/usercenter/index/index [L]
RewriteRule ^/?ucenter/following_([0-9]+)((/|.).*)?$ index.php/usercenter/index/following/uid/$1$2 [L]
RewriteRule ^/?ucenter/following_/(.*)?$ index.php/usercenter/index/following/$1 [L]
RewriteRule ^/?ucenter/following$ index.php/usercenter/index/following [L]
RewriteRule ^/?ucenter/applist_([A-Za-z]+)/([0-9]+)((/|.).*)?$ index.php/usercenter/index/applist/type/$1/uid/$2$3 [L]
RewriteRule ^/?ucenter/applist_([A-Za-z]+)((/|.).*)?$ index.php/usercenter/index/applist/type/$1$2 [L]
RewriteRule ^/?ucenter/applist_([0-9]+)((/|.).*)?$ index.php/usercenter/index/applist/uid/$1$2 [L]
RewriteRule ^/?ucenter/applist_/(.*)?$ index.php/usercenter/index/applist/$1 [L]
RewriteRule ^/?ucenter/applist$ index.php/usercenter/index/applist [L]
RewriteRule ^/?ucenter/information_([0-9]+)((/|.).*)?$ index.php/usercenter/index/information/uid/$1$2 [L]
RewriteRule ^/?ucenter/information_/(.*)?$ index.php/usercenter/index/information/$1 [L]
RewriteRule ^/?ucenter/information$ index.php/usercenter/index/information [L]
RewriteRule ^/?ucenter/fans_([0-9]+)((/|.).*)?$ index.php/usercenter/index/fans/uid/$1$2 [L]
RewriteRule ^/?ucenter/fans_/(.*)?$ index.php/usercenter/index/fans/$1 [L]
RewriteRule ^/?ucenter/fans$ index.php/usercenter/index/fans [L]
RewriteRule ^/?ucenter/rank_([0-9]+)((/|.).*)?$ index.php/usercenter/index/rank/uid/$1$2 [L]
RewriteRule ^/?ucenter/rank_/(.*)?$ index.php/usercenter/index/rank/$1 [L]
RewriteRule ^/?ucenter/rank$ index.php/usercenter/index/rank [L]
RewriteRule ^/?ucenter/rankwait_([0_9]+)((/|.).*)?$ index.php/usercenter/index/rankverifywait/uid/$1$2 [L]
RewriteRule ^/?ucenter/rankwait_/(.*)?$ index.php/usercenter/index/rankverifywait/$1 [L]
RewriteRule ^/?ucenter/rankwait$ index.php/usercenter/index/rankverifywait [L]
RewriteRule ^/?ucenter/rankfailure_([0-9]+)((/|.).*)?$ index.php/usercenter/index/rankverifyfailure/uid/$1$2 [L]
RewriteRule ^/?ucenter/rankfailure_/(.*)?$ index.php/usercenter/index/rankverifyfailure/$1 [L]
RewriteRule ^/?ucenter/rankfailure$ index.php/usercenter/index/rankverifyfailure [L]
RewriteRule ^/?ucenter/rankverify_([0-9]+)((/|.).*)?$ index.php/usercenter/index/rankverify/uid/$1$2 [L]
RewriteRule ^/?ucenter/rankverify_/(.*)?$ index.php/usercenter/index/rankverify/$1 [L]
RewriteRule ^/?ucenter/rankverify$ index.php/usercenter/index/rankverify [L]
RewriteRule ^/?ucenter/conf_/(.*)?$ index.php/usercenter/config/index/$1 [L]
RewriteRule ^/?ucenter/conf$ index.php/usercenter/config/index [L]
RewriteRule ^/?ucenter/session_/(.*)?$ index.php/usercenter/message/session/$1 [L]
RewriteRule ^/?ucenter/session$ index.php/usercenter/message/session [L]
RewriteRule ^/?ucenter/msg_/(.*)?$ index.php/usercenter/message/message/$1 [L]
RewriteRule ^/?ucenter/msg$ index.php/usercenter/message/message [L]
RewriteRule ^/?ucenter/collection_/(.*)?$ index.php/usercenter/message/collection/$1 [L]
RewriteRule ^/?ucenter/collection$ index.php/usercenter/message/collection [L]

#会员
RewriteRule ^/?people/find_/(.*)?$ index.php/people/index/find/$1 [L]
RewriteRule ^/?people/find$ index.php/people/index/find [L]
RewriteRule ^/?people_/(.*)?$ index.php/people/index/index/$1 [L]
RewriteRule ^/?people$ index.php/people/index/index [L]

#注册登录
RewriteRule ^/?register_/(.*)?$ index.php/home/user/register/$1 [L]
RewriteRule ^/?register$ index.php/home/user/register [L]
RewriteRule ^/?register/step2_/(.*)?$ index.php/home/user/step2/$1 [L]
RewriteRule ^/?register/step2$ index.php/home/user/step2 [L]
RewriteRule ^/?register/step3_/(.*)?$ index.php/home/user/step3/$1 [L]
RewriteRule ^/?register/step3$ index.php/home/user/step3 [L]
RewriteRule ^/?login_/(.*)?$ index.php/home/user/login/$1 [L]
RewriteRule ^/?login$ index.php/home/user/login [L]

#默认情况
RewriteCond %{REQUEST_FiLENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>
  支持 (0分)  反对 (0分)
回复  2014-09-18 21:54:32 2

x2012qq
银牌会员
2200.74 价值分

  支持 (0分)  反对 (0分)
回复  2014-09-20 23:32:07 3
 1  (总1页)
AMH社区列表
用户服务中心