2010-04-09 32 views
0

我也在serverfault上發佈了這個,但是我可能會在錯誤的組中提問。Hiawatha和Drupal

我正在使用Hiawatha web服務器並在FastCGI PHP服務器上運行drupal。
drupal網站使用imagecache,它需要私人文件或乾淨的網址。 我使用乾淨的URL時遇到的問題是,對文件的請求也正在被重寫到index.php中。

我現在的配置是:

UrlToolkit { 
    ToolkitID = drupal 
    RequestURI exists Return 
    Match (/files/*) Rewrite $1 
    Match ^/(.*) Rewrite /index.php?q=$1 
} 

以上不起作用。


Drupal的apache的設置是:

<Directory /var/www/example.com> 
    RewriteEngine on 
    RewriteBase/
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 
</Directory> 

回答

0

我認爲你缺少你的規則 「返回」 值:

UrlToolkit { 
    ToolkitID = drupal 
    RequestURI exists Return 
    Match (/files/*) Rewrite $1 Return 
    Match ^/(.*) Rewrite /index.php?q=$1 
}