确定这样的帮助下许多调试后:
debug.log-request-handling = "enable"
^^这是当你试图调试重写规则的lighttpd中的救星! (它记录了我的一切,以/var/log/lighttpd/error.log)
我已经想通了。 (!包括点问题)对于所有那些有麻烦的symfony与lighttpd的工作的人这里的工作集的规则:
url.rewrite-once = (
"^/(js|images|uploads|css|sf)/(.*)" => "$0", # we want to load these assets as is, without index.php
"^/[a-zA-Z_-]+\.(html|txt|ico)$" => "$0", # for any static .html files you might be calling in your web root, we don't want to put the index.php controller in front of them
"^/sf[A-z]+Plugin.*" => "$0", # don't want to mess with plugin routes
"^/([a-z_]+)\.php(.*)\.(.*)$" => "/$1.php$2.$3", # same concept as rules below, except for other applications/environments (backend.php, backend_dev.php, etc)
"^/([a-z_]+)\.php([^.]*)$" => "/$1.php$2", # see comment right above this one
"^/(.*)\.(.*)$" => "/index.php/$1.$2", # handle query strings and the dot problem!
"^/([^.]+)$" => "/index.php/$1", # general requests
"^/$" => "/index.php" # the home page
)
如果任何人有更多的麻烦,张贴在这里。谢谢!
如果有查询两个点会发生什么,“www.gigaom。 COM“? – Joel 2010-10-19 14:47:14
刚刚尝试过,它的工作原理。我还更新了规则一堆我已经在过去一小时发现(其他应用程序,如backend.php例如)和插件文件等情况。我唯一要解决的问题是大写字母,比如backend.php/News作为路线。 – Marc 2010-10-19 16:28:33
任何想法如何我可以得到这种情况? http://2famous.tv/2013/07/11/adrian-layals-radio-show-episode-6-2/?fb_action_ids=10153032356450061&fb_action_types=og.likes&fb_source=timeline_og&action_object_map=%7B%2210153032356450061%22%3A528698340513393%7D&action_type_map= %7B%2210153032356450061%22%3A%22og.likes%22%7D&action_ref_map =%5B%5D – knutole 2013-07-12 04:56:29