清理Hiawatha上的URL

我正在使用Hiawathanetworking服务器并在FastCGI PHP服务器上运行Drupal。
Drupal网站正在使用imagecache,它需要私人文件或干净的url。 我使用干净的URL的问题是对文件的请求也被重写到index.php中。

我目前的configuration是:

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> 

试试这个:

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