绝对冷血 发表于 2011-1-23 00:13:42

bd126 原创小偷 NGINX 规则

bd126 原创小偷 NGINX 规则


location / {
rewrite ^/html/(.+).html$ /html.php?docID=$1;
rewrite ^/list/(.+)-(.+).html$/list.php?q=$1&page=$2;
rewrite ^/list/(.+).html$ /list.php?q=$1;
         }

itisfine 发表于 2011-1-23 00:40:22

:victory: :victory: :victory:

绝对冷血 发表于 2011-1-23 01:11:32

列表页分页错位 修改
tpl/list.pl

    <div dpid="div10" class=ht><table dpid="table1" border="0" cellpadding="0" cellspacing="1" class="Tableborder5">


<?php
foreach ($fenyequyu as $key => $value){
echo preg_replace("|\?q=(.*)&page=(.*)\">|","/list/$1-$2.html\">",$value);
}
?></td>


</table>


    <div dpid="div10" class=ht>

<?php
foreach ($fenyequyu as $key => $value){
echo preg_replace("|\?q=(.*)&page=(.*)\">|","/list/$1-$2.html\">",$value);
}
?></td>

xspoco 发表于 2011-1-23 01:32:07

多谢lz分享

yeqery 发表于 2011-1-23 02:36:40

这个学习下

googlebot2 发表于 2011-1-23 08:36:40

学习下

itisfine 发表于 2011-1-23 11:43:26

怎样才能把那些广告删干净呢:Q

绝对冷血 发表于 2011-1-23 11:49:11

原帖由 itisfine 于 2011-1-23 11:43 发表 http://hostloc.wiki/images/common/back.gif
怎样才能把那些广告删干净呢:Q

tpl下面的模板里面

itisfine 发表于 2011-1-23 12:04:33

干掉了,原来是cache作怪:lol
页: [1]
查看完整版本: bd126 原创小偷 NGINX 规则