Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I rewrite to in Lighttpd? All my Trys didn´t work :(

share|improve this question
url.rewrite-final = ( 
"^/news/news_944836.html" => "/news_944836.html"

if you need that single article to get forwarded.

If everything matching /news/news* should get forwarded, then

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

might do the trick.

share|improve this answer

Please try this:

url.rewrite-repeat = (
   "^/news/(.*)$" => "$1"
share|improve this answer

hmmh, now i get an http404. the old admin used this chain:

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" ) `

and added at the first line:

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

any ideas?

share|improve this answer
Try commenting the old rewrites for testing. And try rewrite-repeat if there are more rules. – weeheavy Sep 8 '10 at 13:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.