Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am using the Hiawatha webserver and running Drupal on a FastCGI PHP server.
The Drupal site is using imagecache and it requires either private files or clean URLs. The issue I am having with clean URLs is that requests to files are being rewritten into index.php as well.

My current config is:

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

The above does not work.


Drupal's apache set up is:

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

1 Answer 1

Try this one:

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.