Hiawatha和Drupal
我也在serverfault上发布了这个,但我可能问错了组 我正在使用Hiawatha web服务器,并在FastCGI PHP服务器上运行drupal。Hiawatha和Drupal,drupal,hiawatha,Drupal,Hiawatha,我也在serverfault上发布了这个,但我可能问错了组 我正在使用Hiawatha web服务器,并在FastCGI PHP服务器上运行drupal。 drupal站点正在使用imagecache,它需要私有文件或干净的URL。 我在使用干净URL时遇到的问题是,对文件的请求也被重写到index.php中 我当前的配置是: UrlToolkit { ToolkitID = drupal RequestURI exists Return Match (/files/*)
drupal站点正在使用imagecache,它需要私有文件或干净的URL。 我在使用干净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>
重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-f
重写cond%{REQUEST_FILENAME}-d
重写规则^(.*)$index.php?q=$1[L,QSA]
我认为您缺少规则的“返回”值:
UrlToolkit {
ToolkitID = drupal
RequestURI exists Return
Match (/files/*) Rewrite $1 Return
Match ^/(.*) Rewrite /index.php?q=$1
}