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

AMH 社区首页

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

[求助帖] 5.0添加伪静态规则提示出错

tufengwei
铁牌会员
121.00 价值分

tufengwei 发表于 2014-09-28 11:57:46
环境LAMP
通过amrewrite-1.0添加以下规则提示错误
# 将 RewriteEngine 模式打开
RewriteEngine On
RewriteBase /

# Rewrite 定义各重写规则
RewriteRule ^mall/index-(.*)-(\d+)\.html$ /index.php\?mod=mall&act=index&cid=$1&page=$2 [L,NC]
RewriteRule ^mall/index-(.*)\.html$ /index.php\?mod=mall&act=index&cid=$1 [L,NC]
RewriteRule ^mall/index\.html$ /index.php\?mod=mall&act=index [L,NC]
RewriteRule ^mall/$ /index.php\?mod=mall&act=index [L,NC]
RewriteRule ^mall$ /index.php\?mod=mall&act=index [L,NC]
RewriteRule ^mall/list-(.*)-(\d+)\.html$ /index.php\?mod=mall&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^mall/list-(.*)\.html$ /index.php\?mod=mall&act=list&cid=$1 [L,NC]
RewriteRule ^mall/list\.html$ /index.php\?mod=mall&act=list [L,NC]
RewriteRule ^mall/view-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=mall&act=view&id=$1&do=$2&page=$3 [L,NC]
RewriteRule ^mall/view-(\d+)-(.*)\.html$ /index.php\?mod=mall&act=view&id=$1&do=$2 [L,NC]
RewriteRule ^mall/view-(\d+)\.html$ /index.php\?mod=mall&act=view&id=$1 [L,NC]
RewriteRule ^mall/goods-(.*)-(\d+)-(\d+)-(\d+)-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=mall&act=goods&merchantId=$1&order=$2&start_price=$3&end_price=$4&list=$5&q=$6&page=$7 [L,NC]
RewriteRule ^mall/goods-(.*)\.html$ /index.php\?mod=mall&act=goods&q=$1 [L,NC]
RewriteRule ^mall/goods\.html$ /index.php\?mod=mall&act=goods [L,NC]
RewriteRule ^article/index\.html$ /index.php\?mod=article&act=index [L,NC]
RewriteRule ^article/$ /index.php\?mod=article&act=index [L,NC]
RewriteRule ^article$ /index.php\?mod=article&act=index [L,NC]
RewriteRule ^article/list-(.*)-(\d+)\.html$ /index.php\?mod=article&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^article/list-(.*)\.html$ /index.php\?mod=article&act=list&cid=$1 [L,NC]
RewriteRule ^article/list\.html$ /index.php\?mod=article&act=list [L,NC]
RewriteRule ^article/view-(\d+)\.html$ /index.php\?mod=article&act=view&id=$1 [L,NC]
RewriteRule ^huodong/list-(\d+)-(\d+)\.html$ /index.php\?mod=huodong&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^huodong/list-(\d+)\.html$ /index.php\?mod=huodong&act=list&page=$1 [L,NC]
RewriteRule ^huodong/list\.html$ /index.php\?mod=huodong&act=list [L,NC]
RewriteRule ^huodong/view-(\d+)\.html$ /index.php\?mod=huodong&act=view&id=$1 [L,NC]
RewriteRule ^huan/list-(\d+)-(\d+)\.html$ /index.php\?mod=huan&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^huan/list-(\d+)\.html$ /index.php\?mod=huan&act=list&cid=$1 [L,NC]
RewriteRule ^huan/list\.html$ /index.php\?mod=huan&act=list [L,NC]
RewriteRule ^huan/view-(\d+)\.html$ /index.php\?mod=huan&act=view&id=$1 [L,NC]
RewriteRule ^tao/index\.html$ /index.php\?mod=tao&act=index [L,NC]
RewriteRule ^tao/$ /index.php\?mod=tao&act=index [L,NC]
RewriteRule ^tao$ /index.php\?mod=tao&act=index [L,NC]
RewriteRule ^tao/list-(.*)-(.*)-(\d+)-(\d+)\.html$ /index.php\?mod=tao&act=list&cid=$1&q=$2&list=$3&page=$4 [L,NC]
RewriteRule ^tao/list-(.*)-(\d+)\.html$ /index.php\?mod=tao&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^tao/list-0-(.*)\.html$ /index.php\?mod=tao&act=list&cid=0&q=$1 [L,NC]
RewriteRule ^tao/list-(.*)\.html$ /index.php\?mod=tao&act=list&cid=$1 [L,NC]
RewriteRule ^tao/list\.html$ /index.php\?mod=tao&act=list [L,NC]
RewriteRule ^tao/view-(.*)-(.*)-(.*)\.html$ /index.php\?mod=tao&act=view&iid=$1&promotion_price=$2&promotion_endtime=$3 [L,NC]
RewriteRule ^tao/view-(.*)\.html$ /index.php\?mod=tao&act=view&iid=$1 [L,NC]
RewriteRule ^tao/shop-(.*)-(\d+)\.html$ /index.php\?mod=tao&act=shop&nick=$1&list=$2 [L,NC]
RewriteRule ^tao/shop-(.*)\.html$ /index.php\?mod=tao&act=shop&nick=$1 [L,NC]
RewriteRule ^tao/zhe-(.*)-(\d+)-(\d+)\.html$ /index.php\?mod=tao&act=zhe&q=$1&cid=$2&page=$3 [L,NC]
RewriteRule ^tao/zhe-(.*)\.html$ /index.php\?mod=tao&act=zhe&q=$1 [L,NC]
RewriteRule ^tao/zhe\.html$ /index.php\?mod=tao&act=zhe [L,NC]
RewriteRule ^tao/coupon-(.*)\.html$ /index.php\?mod=tao&act=coupon&q=$1 [L,NC]
RewriteRule ^tao/coupon\.html$ /index.php\?mod=tao&act=coupon [L,NC]
RewriteRule ^tao/juhuasuan\.html$ /index.php\?mod=tao&act=juhuasuan [L,NC]
RewriteRule ^tao/cha\.html$ /index.php\?mod=tao&act=cha [L,NC]
RewriteRule ^tao/jiu\.html$ /index.php\?mod=tao&act=jiu [L,NC]
RewriteRule ^tao/shijiu\.html$ /index.php\?mod=tao&act=shijiu [L,NC]
RewriteRule ^shop/list-(\d+)-(\d+)-(\d+)-(\d+)-(.*)-(\d+)-(\d+)\.html$ /index.php\?mod=shop&act=list&cid=$1&start_level=$2&end_level=$3&type=$4&nick=$5&px=$6&page=$7 [L,NC]
RewriteRule ^shop/list-(.*)-(\d+)\.html$ /index.php\?mod=shop&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^shop/list-(.*)\.html$ /index.php\?mod=shop&act=list&cid=$1 [L,NC]
RewriteRule ^shop/list\.html$ /index.php\?mod=shop&act=list [L,NC]
RewriteRule ^baobei/list-(.*)-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=baobei&act=list&sort=$1&cid=$2&q=$3&page=$4 [L,NC]
RewriteRule ^baobei/list-(\d+)-(\d+)\.html$ /index.php\?mod=baobei&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^baobei/list-(\d+)-(.*)\.html$ /index.php\?mod=baobei&act=list&cid=$1&q=$2 [L,NC]
RewriteRule ^baobei/list-(\d+)\.html$ /index.php\?mod=baobei&act=list&cid=$1 [L,NC]
RewriteRule ^baobei/list\.html$ /index.php\?mod=baobei&act=list [L,NC]
RewriteRule ^baobei/user-(\d+)-(\d+)-(\d+)\.html$ /index.php\?mod=baobei&act=user&uid=$1&xs=$2&page=$3 [L,NC]
RewriteRule ^baobei/user-(\d+)-(\d+)\.html$ /index.php\?mod=baobei&act=user&uid=$1&xs=$2 [L,NC]
RewriteRule ^baobei/user-(\d+)\.html$ /index.php\?mod=baobei&act=user&uid=$1 [L,NC]
RewriteRule ^baobei/view-(\d+)\.html$ /index.php\?mod=baobei&act=view&id=$1 [L,NC]
RewriteRule ^tuan/list-(\d+)-(\d+)-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=tuan&act=list&cid=$1&mall_id=$2&city_id=$3&sort=$4&page=$5 [L,NC]
RewriteRule ^tuan/list-(\d+)-(\d+)-(.*)\.html$ /index.php\?mod=tuan&act=list&cid=$1&city_id=$2&sort=$3 [L,NC]
RewriteRule ^tuan/list-(\d+)-(\d+)\.html$ /index.php\?mod=tuan&act=list&cid=$1&page=$2 [L,NC]
RewriteRule ^tuan/list-(.*)-(\d+)\.html$ /index.php\?mod=tuan&act=list&q=$1&page=$2 [L,NC]
RewriteRule ^tuan/list-(\d+)\.html$ /index.php\?mod=tuan&act=list&cid=$1 [L,NC]
RewriteRule ^tuan/list-(.*)\.html$ /index.php\?mod=tuan&act=list&q=$1 [L,NC]
RewriteRule ^tuan/list\.html$ /index.php\?mod=tuan&act=list [L,NC]
RewriteRule ^tuan/view-(\d+)\.html$ /index.php\?mod=tuan&act=view&id=$1 [L,NC]
RewriteRule ^help/index-(\d+)\.html$ /index.php\?mod=help&act=index&cid=$1 [L,NC]
RewriteRule ^help/index\.html$ /index.php\?mod=help&act=index [L,NC]
RewriteRule ^help/$ /index.php\?mod=help&act=index [L,NC]
RewriteRule ^help$ /index.php\?mod=help&act=index [L,NC]
RewriteRule ^about/index-(\d+)\.html$ /index.php\?mod=about&act=index&id=$1 [L,NC]
RewriteRule ^about/index\.html$ /index.php\?mod=about&act=index [L,NC]
RewriteRule ^about/$ /index.php\?mod=about&act=index [L,NC]
RewriteRule ^about$ /index.php\?mod=about&act=index [L,NC]
RewriteRule ^sitemap/index\.html$ /index.php\?mod=sitemap&act=index [L,NC]
RewriteRule ^sitemap/$ /index.php\?mod=sitemap&act=index [L,NC]
RewriteRule ^sitemap$ /index.php\?mod=sitemap&act=index [L,NC]
RewriteRule ^paipai/index\.html$ /index.php\?mod=paipai&act=index [L,NC]
RewriteRule ^paipai/$ /index.php\?mod=paipai&act=index [L,NC]
RewriteRule ^paipai$ /index.php\?mod=paipai&act=index [L,NC]
RewriteRule ^paipai/list-(\d+)-(.*)-(\d+)-(.*)-(\d+)-(\d+)-(\d+)-(\d+)\.html$ /index.php\?mod=paipai&act=list&cid=$1&q=$2&sort=$3&property=$4&begPrice=$5&endPrice=$6&list=$7&page=$8 [L,NC]
RewriteRule ^paipai/list-(.*)\.html$ /index.php\?mod=paipai&act=list&q=$1 [L,NC]
RewriteRule ^paipai/list\.html$ /index.php\?mod=paipai&act=list [L,NC]
RewriteRule ^jiu/index-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=jiu&act=index&cid=$1&sort=$2&page=$3 [L,NC]
RewriteRule ^jiu/index-(\d+)-(.*)\.html$ /index.php\?mod=jiu&act=index&cid=$1&sort=$2 [L,NC]
RewriteRule ^jiu/index\.html$ /index.php\?mod=jiu&act=index [L,NC]
RewriteRule ^jiu/$ /index.php\?mod=jiu&act=index [L,NC]
RewriteRule ^jiu$ /index.php\?mod=jiu&act=index [L,NC]
RewriteRule ^shijiu/index-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=shijiu&act=index&cid=$1&sort=$2&page=$3 [L,NC]
RewriteRule ^shijiu/index-(\d+)-(.*)\.html$ /index.php\?mod=shijiu&act=index&cid=$1&sort=$2 [L,NC]
RewriteRule ^shijiu/index\.html$ /index.php\?mod=shijiu&act=index [L,NC]
RewriteRule ^shijiu/$ /index.php\?mod=shijiu&act=index [L,NC]
RewriteRule ^shijiu$ /index.php\?mod=shijiu&act=index [L,NC]
RewriteRule ^tejia/index-(\d+)-(\d+)-(\d+)\.html$ /index.php\?mod=tejia&act=index&cid=$1&rate=$2&page=$3 [L,NC]
RewriteRule ^tejia/index-(\d+)-(\d+)\.html$ /index.php\?mod=tejia&act=index&cid=$1&rate=$2 [L,NC]
RewriteRule ^tejia/index\.html$ /index.php\?mod=tejia&act=index [L,NC]
RewriteRule ^tejia/$ /index.php\?mod=tejia&act=index [L,NC]
RewriteRule ^tejia$ /index.php\?mod=tejia&act=index [L,NC]
RewriteRule ^zhuanxiang/index-(\d+)\.html$ /index.php\?mod=zhuanxiang&act=index&page=$1 [L,NC]
RewriteRule ^zhuanxiang/index\.html$ /index.php\?mod=zhuanxiang&act=index [L,NC]
RewriteRule ^zhuanxiang/$ /index.php\?mod=zhuanxiang&act=index [L,NC]
RewriteRule ^zhuanxiang$ /index.php\?mod=zhuanxiang&act=index [L,NC]
RewriteRule ^zhidemai/index-(\d+)-(.*)-(\d+)\.html$ /index.php\?mod=zhidemai&act=index&cid=$1&do=$2&page=$3 [L,NC]
RewriteRule ^zhidemai/index-(\d+)-(\d+)\.html$ /index.php\?mod=zhidemai&act=index&cid=$1&page=$2
请问是什么原因?(因字数限制规则未完)
2014-09-28 11:57:46 1

tufengwei
铁牌会员
121.00 价值分

[L,NC]
RewriteRule ^zhidemai/index-(\d+)\.html$ /index.php\?mod=zhidemai&act=index&cid=$1 [L,NC]
RewriteRule ^zhidemai/index\.html$ /index.php\?mod=zhidemai&act=index [L,NC]
RewriteRule ^zhidemai/$ /index.php\?mod=zhidemai&act=index [L,NC]
RewriteRule ^zhidemai$ /index.php\?mod=zhidemai&act=index [L,NC]
RewriteRule ^zhidemai/baoliao\.html$ /index.php\?mod=zhidemai&act=baoliao [L,NC]
RewriteRule ^zhidemai/view-(\d+)\.html$ /index.php\?mod=zhidemai&act=view&id=$1 [L,NC]
RewriteRule ^task/index\.html$ /index.php\?mod=task&act=index [L,NC]
RewriteRule ^task/$ /index.php\?mod=task&act=index [L,NC]
RewriteRule ^task$ /index.php\?mod=task&act=index [L,NC]
RewriteRule ^gametask/index\.html$ /index.php\?mod=gametask&act=index [L,NC]
RewriteRule ^gametask/$ /index.php\?mod=gametask&act=index [L,NC]
RewriteRule ^gametask$ /index.php\?mod=gametask&act=index [L,NC]
RewriteRule ^tbimg/(.*)\.jpg$ /comm/showpic.php\?pic=$1 [L,NC]
RewriteRule ^plugin/(.*)\.html$ /plugin.php\?plugin_query=$1 [L,NC]
RewriteRule ^index\.html$ /index.php [L,NC]
接上面规则
  支持 (0分)  反对 (0分)
回复  2014-09-28 11:58:11 2

tufengwei
铁牌会员
121.00 价值分

已解决,将
# 将 RewriteEngine 模式打开
RewriteEngine On
RewriteBase /
去掉就正常了

  支持 (0分)  反对 (0分)
回复  2014-09-28 12:26:50 3

amysql
创始人
16530.81 价值分

引用:
tufengwei 发表于 2014-9-28 12:26
已解决,将
# 将 RewriteEngine 模式打开
RewriteEngine On


是的。
RewriteBase /的原因。
  支持 (0分)  反对 (0分)
回复  2014-09-29 18:00:43 4

AMH面板 - 好用高效低占用、安全可靠极稳定

 1  (总1页)
AMH社区列表
用户服务中心