优点:简单 就算dz8.0 伪静态的url再怎么变化或添加也无需改动
缺点:图片什么的也做了抓取操作 浪费了宝贵的资源
index.php内容
.htaccess内容
演示:http://bluechiphosting.angel.mw/
本文转自山寨PW论坛
缺点:图片什么的也做了抓取操作 浪费了宝贵的资源
index.php内容
- <?php
- error_reporting(0);
- $site='www.im286.com';
- $mysite='www.pwbbs.cn';
- $url=strtolower(substr($_SERVER['REQUEST_URI'],1));
- $fullurl='http://'.$site.'/'.$url;
- $html=file_get_contents($fullurl);
- $out=str_replace($site,$mysite,$html);
- $out=str_replace('forumdata/cache/style_8_common.css','http://www.im286.com/forumdata/cache/style_8_common.css',$out);
- $out=str_replace('forumdata/cache/style_8_viewthread.css','http://www.im286.com/forumdata/cache/style_8_viewthread.css',$out);
- $out=str_replace('include/javascript/common.js','http://www.im286.com/include/javascript/common.js',$out);
- echo $out;
- ?>
.htaccess内容
- <IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteBase /
- RewriteRule ^(.+)$ index.php?noindex
- </IfModule>
演示:http://bluechiphosting.angel.mw/
本文转自山寨PW论坛
n词酷,学习英语的好地方
微博盛行,申请了个新浪的


2009/08/18 10:38 | by 