Lightttpd重写

如何在Lighttpd中将www.domain.de/news/news_944836.html重写为www.domain.de/news_944836.html? 我所有的Trys没有工作:(

url.rewrite-final = ( "^/news/news_944836.html" => "/news_944836.html" ) 

如果你需要这个单一的文章转发。

如果一切匹配/新闻/新闻*应该转发,那么

 url.rewrite-final = ( "^/news/(.*)$" => "/$1" ) 

可能会做的伎俩。

请试试这个:

 url.rewrite-repeat = ( "^/news/(.*)$" => "$1" ) 

嗯,现在我得到一个http404。 旧的pipe理员使用这个链:

url.rewrite-once =(

“rss / rss91.xml”=>“/index.php?id=35344”,“^ /(handel / | kanalliste / | typo3 | typo3temp / | typo3conf / | img / | css / | uploads / | fileadmin / t3lib / | robots.txt | clear.gif | apc.php | apc_cache.php)。 $“=>”$ 0“,”^ / $“=>”index.php“,”^ / index.php \ ?. $“=>”$ 0“,”^ typo3 $“=>”typo3 / index_re.php“,”。\?([^。] +)“=>”index.php?$ 1“,”。$“= >“index.php”)`

并在第一行添加:

"^/news/(.*)$" => "$1",

有任何想法吗?