标题:
[求助]
伪静态不能使用?服务器环境问题?
[打印本页]
作者:
ainan
时间:
2012-4-4 13:46
标题:
伪静态不能使用?服务器环境问题?
伪静态规则是多多淘宝客的
location / {
rewrite /index\.html$ /index.php last;
rewrite /sitemap\.html$ /sitemap.php last;
rewrite /userbao-(.*)-(.*)-(.*)-(.*)\.html$ /userbao.php?id=$1&catid=$2&xs=$3&page=$4 last;
rewrite /userbao-(.*)\.html$ /userbao.php?id=$1 last;
rewrite /baobeilist\.html$ /baobeilist.php last;
rewrite /baobeilist-(.*)-(.*)-(.*)-(.*)\.html$ /baobeilist.php?catid=$1&sort=$2&key=$3&page=$4 last;
rewrite /baobei-(.*)-(.*)\.html$ /baobei.php?id=$1&page=$2 last;
rewrite /baobei-(.*)\.html$ /baobei.php?id=$1 last;
rewrite /malllist\.html$ /malllist.php last;
rewrite /shoplist\.html$ /shoplist.php last;
rewrite /article\.html$ /article.php last;
rewrite /user/center\.html$ /user/center.php last;
rewrite /mall-(.*)-(.*)-(.*)\.html$ /mall.php?id=$1&act=$2&page=$3 last;
rewrite /mall-(.*)-(.*)\.html$ /mall.php?id=$1&act=$2 last;
rewrite /mall-(.*)\.html$ /mall.php?id=$1 last;
rewrite /view-(.*)-(.*)\.html$ /view.php?iid=$1&page=$2 last;
rewrite /view-(.*)\.html$ /view.php?iid=$1 last;
rewrite /malllist-(.*)-(.*)-(.*)\.html$ /malllist.php?catid=$1&mall=$2&page=$3 last;
rewrite /article_list-(.*)-(.*)\.html$ /article_list.php?cid=$1&page=$2 last;
rewrite /article_list-(.*)\.html$ /article_list.php?cid=$1 last;
rewrite /read-(.*)\.html$ /read.php?id=$1 last;
rewrite /shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /shoplist.php?cid=$1&keyword=$2&start_level=$3&end_level=$4&area=$5&px=$6&cpr=$7&type=$8&page=$9 last;
rewrite /list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /list.php?cid=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9 last;
rewrite /shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /shop.php?nick=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9 last;
rewrite /shoplist-(.*)\.html$ /shoplist.php?cid=$1 last;
rewrite /shop-(.*)\.html$ /shop.php?nick=$1 last;
rewrite /list-(.*)\.html$ /list.php?cid=$1 last;
rewrite /tbimg/(.*)\.jpg$ /topic.php?pic=$1 last;
rewrite /list\.html$ /list.php last;
rewrite /huangou-(.*)\.html$ /huangou.php?id=$1 last;
rewrite /huan-(.*)-(.*)\.html$ /huan.php?keyword=$1&page=$2 last;
rewrite /huan\.html$ /huan.php last;
rewrite /coupons-(.*)-(.*)\.html$ /coupons.php?cid=$1&page=$2 last;
rewrite /coupons\.html$ /coupons.php last;
rewrite /cuxiao-(.*)\.html$ /cuxiao.php?id=$1 last;
rewrite /tg-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /tg.php?city_id=$1&catid=$2&mallid=$3&keyword=$4&page=$5 last;
rewrite /tg-(.*)-(.*)-(.*)-(.*)\.html$ /tg.php\?city_id=$1&catid=$2&mallid=$3&page=$4 last;
rewrite /tg-(.*)-(.*)-(.*)\.html$ /tg.php?city_id=$1&catid=$2&mallid=$3 last;
rewrite /tg-(.*)\.html$ /tg.php?city_id=$1 last;
rewrite /tg\.html$ /tg.php last;
rewrite /tgview-(.*)\.html$ /tgview.php?id=$1 last;
}
复制代码
在rewrite规则管理管理里添加这个规则,没有用哦
作者:
359865306
时间:
2012-4-4 17:13
我也是用的多多,把规则放到根目录就可以了,可以使用
作者:
ainan
时间:
2012-4-5 12:13
回复
2#
359865306
怎么放啊?官方提供的.htaccess文件吗???
作者:
ainan
时间:
2012-4-5 12:23
回复
2#
359865306
你的是lamp还是lnmp啊
作者:
a359865306
时间:
2012-4-5 13:17
回复
4#
ainan
lamp~~~~~~~~~~~
作者:
fineusb
时间:
2012-4-6 23:35
重置一下数据,清空缓存
作者:
ainan
时间:
2012-4-8 12:28
回复
6#
fineusb
具体点呐
欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/)
Powered by Discuz! 7.2