Lighttpd ModRewrite

来自开放百科 - 灰狐
跳转到: 导航, 搜索

Examples

server.document-root = "/www/htdocs/" 
$HTTP["host"] =~ "^.*\.([^.]+\.com)$" {
  url.rewrite-once = ( "^/(.*)" => "/%0/$1" )
}
url.rewrite-once = ( "^/id/([0-9]+)$" => "/index.php?id=$1",
                     "^/link/([a-zA-Z]+)" => "/index.php?link=$1" )

More Detail: http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱