Zend framework Lighttpd Zend框架重写错误

Zend framework Lighttpd Zend框架重写错误,zend-framework,redirect,url-rewriting,lighttpd,Zend Framework,Redirect,Url Rewriting,Lighttpd,我已经为我的特定zend框架(社交引擎)设置了一个特定的.htaccess,但现在需要一些帮助才能在lighttpd服务器上运行 基本上发生了两件事: Zend(出于某种原因)将index.php添加到一些url中,因此domain.com/users成为domain.com/index.php/users 重写从http://domain.com/index.php/test/至http://test/ 请记住,这确实有效 这是我的Lighttpd.conf设置 #TODO : Fix thi

我已经为我的特定zend框架(社交引擎)设置了一个特定的.htaccess,但现在需要一些帮助才能在lighttpd服务器上运行

基本上发生了两件事:

  • Zend(出于某种原因)将index.php添加到一些url中,因此domain.com/users成为domain.com/index.php/users
  • 重写从
    http://domain.com/index.php/test/
    http://test/
  • 请记住,这确实有效

    这是我的Lighttpd.conf设置

    #TODO : Fix this line "/(\?(.*))?$" => "/index.php?rewrite=1&$2", - >
    #       redirects http://www.domain.com/index.php/test to http:///test/
        ############# Standard Domain
        $HTTP["host"] =~ "(^|\.)domain\.com$" {
            server.document-root = "/home/lighttpd/www.domain.com"
            server.errorlog = "/var/log/lighttpd/www.domain.com/error.log"
            accesslog.filename = "/var/log/lighttpd/www.domain.com/access.log"
            #server.error-handler-404 = "/e404.php"
            url.rewrite-once = (
               "(^/index\.php/admin.*)" => "$1",
               "^/(admin/.*)" => "/index.php/$1",
               "(^/install.*)" => "$1",
               "^/index\.php(\?(.*))?" => "/index.php?rewrite=2&$2",
               #"/(\?(.*))?$" => "/index.php?rewrite=1&$2",
            )
            url.rewrite-if-not-file = (
               "/?(\?(.*))?$" => "/index.php?rewrite=1&$2",
               ".*" => "/index.php?rewrite=1",
            )
        }
    

    如果问题本身(a)与Apache无关,并且(b)不需要任何Apache知识来解决,请不要用Apache相关的标记来标记问题。啊,我很抱歉,我不是有意造成混淆。