不积跬步,无以至千里!
首先把dz官方插件伪静态格式注释掉。
nginx:
rewrite ^([^\.]*)/cate([0-9]*)e([0-9]*)e([0-9]*)e([0-9]*)e([0-9]*)\.html$ $1/plugin.php?id=waterfall:waterfall&fid=$2&filter=$3&orderby=$4&sub=$5&page=$6 last;
apache:
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^cate([0-9]*)e([0-9]*)e([0-9]*)e([0-9]*)e([0-9]*)\.html$
plugin.php?id=waterfall:waterfall&fid=$1&filter=$2&orderby=$3&sub=$4&page=$5%1
iis6.0:
RewriteRule ^(.*)/cate([0-9]*)e([0-9]*)e([0-9]*)e([0-9]*)e([0-9]*)\.html(\?(.*))*$ $1/plugin\.php\?id=waterfall:waterfall&fid=$2&filter=$3&orderby=$4&sub=$5&page=$6
如果要首页为该插件,首先在web服务器中将网站默认首页设置成plugin.php
然后修改dz程序根目录下plugin.php,在
if(!empty($_GET['id'])) {
上一行加入
empty($_GET['id']) && $_GET['id'] = ‘waterfall:waterfall’;