原PW伪静态
添加规则:RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
效果:
版块URL:http://www.phpwind.net/thread-htm-fid-57.html
页面URL:http://www.phpwind.net/read-htm-tid-620779.html改成:
版块URL:http://www.phpwind.net/thread/7.html
页面URL:http://www.phpwind.net/read/20779.html
改如何写规则?貌似还要改 global.php
中的:
$url = str_replace(
array('.php?','=','&',$add),
array($db_dir,'-','-',''),
$url
).$db_ext.$add;
添加规则:RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
效果:
版块URL:http://www.phpwind.net/thread-htm-fid-57.html
页面URL:http://www.phpwind.net/read-htm-tid-620779.html改成:
版块URL:http://www.phpwind.net/thread/7.html
页面URL:http://www.phpwind.net/read/20779.html
改如何写规则?貌似还要改 global.php
中的:
$url = str_replace(
array('.php?','=','&',$add),
array($db_dir,'-','-',''),
$url
).$db_ext.$add;
楼主【cordmm】截止到2008-06-27 13:03:53的历史汇总数据(不包括此帖):
发帖数:2 发帖分:40
结贴数:2 结贴分:40
未结数:0 未结分:0
结贴率:100.00% 结分率:100.00%
敬礼!