--- globalredirect.module       2008-09-04 12:41:24.000000000 -0400
+++ globalredirect.fixed.module 2008-09-04 12:51:45.000000000 -0400
@@ -22,7 +22,8 @@ function globalredirect_init() {
   //We need to do a test to make sure we only clean up URL's for the main request. This stops modules such as
   //  the Ad Module which had its own script in its folder doing a bootstrap which invoked hook_init and caused some banners to get "cleaned up"
   //  See issue: http://drupal.org/node/205810
- if ($_SERVER['SCRIPT_NAME'] != '/index.php') return false;
+ if (substr($_SERVER['SCRIPT_NAME'], -10) != '/index.php') return false;
+


