PhpWind教程:Lighttpd\zeus 下Phpwind程序静态部署的Rewrite Rules_PhpWind教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

Lighttpd:
url.rewrite = ( "^(.*)/htm/(.*)$" => "$1.php?$2", "^(.*)/simple/([a-z0-9\_]+\.html)$" => "$1/simple/index.php?$2" )


zeus 中设置 phpwind 无图版与blog 的静态URL重写

进入 Virtual Server => Request Rewriting
Enabling Request Rewriting 设置 Enabled
并在Rewrite Script 中将一下代码填入提交并 make it take effect. 即可

match URL into $ with ^(.*)-htm-(.*)$
if matched then
set URL = $1.php?$2
endif
match URL into $ with ^(.*)/simple/([a-z0-9\_]+\.html)$
if matched then
set URL = $1/simple/index.php?$2
endif

查看更多 PhpWind教程  PhpWind模板风格

来源:Phpwind//所属分类:PhpWind教程/更新时间:2012-06-04
相关PhpWind教程