首页 > CMS建站 > Phpwind > 正文

PhpWind教程:Lighttpd/zeus 下Phpwind程序静态部署的Rewrite Rules

2020-05-30 21:54:00
字体:
来源:转载
供稿:网友

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选