ShopWT官网-php多用户商城系统-在路上
标题:
希望放出v3b9版本的lnmp环境下的伪静态规则
[打印本页]
作者:
偏店浪人
时间:
2015-3-24 23:57
标题:
希望放出v3b9版本的lnmp环境下的伪静态规则
RT.
PS:论坛貌似回档了一段时间。。。。
作者:
/v阿潇^ê^
时间:
2015-3-25 12:47
# 将 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;
作者:
偏店浪人
时间:
2015-3-25 16:02
这个我已经测试过了。在v3b9版本上无效的。
咱回复可以走点心么?
作者:
hackshadow
时间:
2015-4-22 13:54
同样问题,我的也是LNMP,这个伪静态没有用。
作者:
japen2
时间:
2015-8-19 13:41
本地伪静态可以用吗?
作者:
japen2
时间:
2015-8-19 13:41
论坛,不错,必须,支持
作者:
damufage
时间:
2015-8-28 10:51
就是,这个问题咋弄,Linux系统 伪静态
欢迎光临 ShopWT官网-php多用户商城系统-在路上 (https://bbs.shopwt.com/)
Powered by Discuz! X3.4