我也在服务器错误上发布了这篇文章,但我可能问错了。
我正在使用Hiawatha服务器,并在FastCGI服务器上运行drupal。
drupal站点正在使用imagecache,它需要私有文件或清除urls。我使用干净urls时遇到的问题是,对文件的请求也被重写为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>发布于 2010-04-23 20:07:01
我认为您忽略了您的规则的“返回”值:
UrlToolkit {
ToolkitID = drupal
RequestURI exists Return
Match (/files/*) Rewrite $1 Return
Match ^/(.*) Rewrite /index.php?q=$1
}https://stackoverflow.com/questions/2606934
复制相似问题