Clean URLs with Hiawatha

Last updated on
8 August 2016

Hiawatha Webserver offers URL rewriting via the URL Toolkit. The required toolkit rule for your Drupal website is:

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

VirtualHost {
    Hostname = www.yoursite.org
    WebsiteRoot = /path/to/drupal
    ...
    UseToolkit = drupal
}