break;
}
}
// $url .= $db_ext; 很多人以为后缀问题,故作特处理。
return $url . $add;
}
规则如下. 添加到httpd.ini或者.htaccess 或者其他
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^thread-htm-tid-(d+)-(.*).html thread.php?fid=$1
RewriteRule ^read-htm-tid-(d+)-(.*).html read.php?tid=$1
RewriteRule ^commtopics-(d+)-(.*) thread.php?fid=$1&page=$2
RewriteRule ^commtopics-(.*) thread.php?fid=$1&page=$2
RewriteRule ^article-(d+)-(d+)-(.*).html read.php?tid=$1&page=$2&fpage=$3
RewriteRule ^article-(d+)-(d+).html read.php?tid=$1&page=$2
RewriteRule ^article-(.*).html read.php?tid=$1
RewriteRule ^(.*)-htm-(.*).html $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9_]+.html)$ $1/simple/index.php?$2
</IfModule>










