diff --git a/scripts/drupal.sh b/scripts/drupal.sh
index 2bf035a..5983ad2 100755
--- a/scripts/drupal.sh
+++ b/scripts/drupal.sh
@@ -114,7 +114,7 @@ while ($param = array_shift($_SERVER['argv'])) {
 
         // set file to execute or Drupal path (clean urls enabled)
         if (isset($path['path']) && file_exists(substr($path['path'], 1))) {
-          $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = $path['path'];
+          $_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = $path['path'];
           $cmd = substr($path['path'], 1);
         }
         else if (isset($path['path'])) {
