全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1703|回复: 8

bd126 原创小偷 NGINX 规则

[复制链接]
发表于 2011-1-23 00:13:42 | 显示全部楼层 |阅读模式
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.          }
复制代码

评分

参与人数 1威望 +10 收起 理由
xspoco + 10 原创内容

查看全部评分

发表于 2011-1-23 00:40:22 | 显示全部楼层
 楼主| 发表于 2011-1-23 01:11:32 | 显示全部楼层
列表页分页错位 修改
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>
复制代码
发表于 2011-1-23 01:32:07 | 显示全部楼层
多谢lz分享
发表于 2011-1-23 02:36:40 | 显示全部楼层
这个学习下
发表于 2011-1-23 08:36:40 | 显示全部楼层
学习下
发表于 2011-1-23 11:43:26 | 显示全部楼层
怎样才能把那些广告删干净呢
 楼主| 发表于 2011-1-23 11:49:11 | 显示全部楼层
原帖由 itisfine 于 2011-1-23 11:43 发表
怎样才能把那些广告删干净呢


tpl下面的模板里面
发表于 2011-1-23 12:04:33 | 显示全部楼层
干掉了,原来是cache作怪
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-5-8 00:39 , Processed in 0.069285 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表