咨询热线:18076568990、0755-25823180

[已解决] 希望放出v3b9版本的lnmp环境下的伪静态规则

1697 6 偏店浪人 发表于 2015-3-24 23:57:02
RT.


PS:论坛貌似回档了一段时间。。。。
damufage 发表于 2015-8-28 10:51:09
就是,这个问题咋弄,Linux系统 伪静态
japen2 发表于 2015-8-19 13:41:27
论坛,不错,必须,支持
japen2 发表于 2015-8-19 13:41:17
本地伪静态可以用吗?
hackshadow 发表于 2015-4-22 13:54:43
同样问题,我的也是LNMP,这个伪静态没有用。
 楼主| 偏店浪人 发表于 2015-3-25 16:02:32
这个我已经测试过了。在v3b9版本上无效的。

咱回复可以走点心么?
/v阿潇^ê^ 发表于 2015-3-25 12:47:23
# 将 RewriteEngine 模式打开
RewriteEngine On
RewriteBase /

# apache ,iis 伪静态规则
RewriteRule ^goods-([0-9]+)(-?)([0-9]*).html$ index.php?act=goods&goods_id=$1
RewriteRule ^groupbuy-([0-9]+)-([0-9]+).html$ index.php?act=show_groupbuy&op=groupbuy_detail&group_id=$1&id=$2
RewriteRule ^article-([0-9]+).html$ index.php?act=article&article_id=$1
RewriteRule ^store-([0-9]+).html$ index.php?act=show_store&store_id=$1
RewriteRule ^activity-([0-9]+)-([0-9]*).html$ index.php?act=activity&activity_id=$1&nav_id=$2
RewriteRule ^store_nav-([0-9]+)-([0-9]+).html$ index.php?act=show_store&store_id=$1&article=$2
RewriteRule ^document-([a-zA-Z_]+).html$ index.php?act=document&code=$1
RewriteRule ^coupon_info-([0-9]+)-([0-9]+).html$ index.php?act=coupon_store&op=detail&coupon_id=$1&id=$2

#nginx 伪静态规则
#rewrite ^/goods-([0-9]+)(-?)([0-9]*).html$ /index.php?act=goods&goods_id=$1&id=$2 last;
#rewrite ^/groupbuy-([0-9]+)-([0-9]+).html$ /index.php?act=show_groupbuy&op=groupbuy_detail&group_id=$1&id=$2 last;
#rewrite ^/article-([0-9]+).html$ /index.php?act=article&article_id=$1 last;
#rewrite ^/store-([0-9]+).html$ /index.php?act=show_store&store_id=$1 last;
#rewrite ^/activity-([0-9]+)-([0-9]*).html$ /index.php?act=activity&activity_id=$1&nav_id=$2 last;
#rewrite ^/store_nav-([0-9]+)-([0-9]+).html$ /index.php?act=show_store&store_id=$1&article=$2 last;
#rewrite ^/document-([a-zA-Z_]+).html$ /index.php?act=document&code=$1 last;
#rewrite ^/coupon_info-([0-9]+)-([0-9]+).html$ /index.php?act=coupon_store&op=detail&coupon_id=$1&id=$2 last;

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 今日
    0
  • 主题
    1507

推荐贴子

联系我们

产品及方案咨询:18076568990、0755-25823180

电子邮箱:web@shopwt.com、客服微信:shopwtcom

公司地址:深圳市罗湖区人民南路3002号国贸大厦B座1608楼

  • 官方公众号

  • 微信客服