全球主机交流论坛

标题: bd126 原创小偷 NGINX 规则 [打印本页]

作者: 绝对冷血    时间: 2011-1-23 00:13
标题: bd126 原创小偷 NGINX 规则
bd126 原创小偷 NGINX 规则


  1. location / {
  2. rewrite ^/html/(.+).html$ /html.php?docID=$1;
  3. rewrite ^/list/(.+)-(.+).html$  /list.php?q=$1&page=$2;
  4. rewrite ^/list/(.+).html$ /list.php?q=$1;
  5.          }
复制代码

作者: itisfine    时间: 2011-1-23 00:40

作者: 绝对冷血    时间: 2011-1-23 01:11
列表页分页错位 修改
tpl/list.pl

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

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


  8. </table>
复制代码


  1.     <div dpid="div10" class=ht>
  2.   
  3. <?php
  4. foreach ($fenyequyu[1] as $key => $value){
  5. echo preg_replace("|\?q=(.*)&page=(.*)">|","/list/$1-$2.html">",$value);
  6. }
  7. ?></td>
复制代码

作者: xspoco    时间: 2011-1-23 01:32
多谢lz分享
作者: yeqery    时间: 2011-1-23 02:36
这个学习下
作者: googlebot2    时间: 2011-1-23 08:36
学习下
作者: itisfine    时间: 2011-1-23 11:43
怎样才能把那些广告删干净呢
作者: 绝对冷血    时间: 2011-1-23 11:49
原帖由 itisfine 于 2011-1-23 11:43 发表
怎样才能把那些广告删干净呢


tpl下面的模板里面
作者: itisfine    时间: 2011-1-23 12:04
干掉了,原来是cache作怪




欢迎光临 全球主机交流论坛 (https://loc.1226.eu.org/) Powered by Discuz! X3.4