www.iklfy.com

PHPWind 8.5和8.7版的伪静态.htaccess规则

日前PHPWind发布了8.7的新版本,站长们升级后有些伪静态规则不能使用。本文介绍修改Apache的.htaccess来实现伪静态的效果,效果如下:

一、修改根目录下.htaccess规则,代码如下:
RewriteEngine on
RewriteRule f(\d+)_(.*)_(.*)$ /thread.php?fid=$1&page=$2&type=$3 [L]
RewriteRule f(\d+)_(.*)$ /thread.php?fid=$1&page=$2 [L]
RewriteRule f(\d+)$ /thread.php?fid=$1&page=$2 [L]
RewriteRule (\d+)_(.*)_(.*)_(.*).html$ /read.php?tid=$1&page=$2&fpage=$3&uid=$4 [L]
RewriteRule (\d+)_(.*)_(.*).html$ /read.php?tid=$1&page=$2&fpage=$3 [L]
RewriteRule (\d+)_(.*).html$ /read.php?tid=$1&page=$2 [L]
RewriteRule (\d+).html /read.php?tid=$1 [L]
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2 [L]
Re