Global redirect stopped working for me after updating to 1.3.1
the issue is if ($_SERVER['SCRIPT_NAME'] != '/index.php') return false;

the problem is that the script name is NOT guaranteed to be /index.php in a multisite multidrupal webhosting environment.

my script name is /drupal-5.10/index.php
(the drupal version is hidden by modrewrite)

different sites can be on drupal 4,5,6,7 as required and global redirect breaks!!
so i use
if (!strpos($_SERVER['SCRIPT_NAME'], '/index.php')) return false;

please advise

CommentFileSizeAuthor
#1 globalredirect.patch671 bytestreksler

Comments

treksler’s picture

StatusFileSize
new671 bytes

patch for the above fix...
the question is, would this still avoid interfering with the ad module, etc.

dave reid’s picture

Version: 5.x-1.3-1 » 5.x-1.x-dev
Status: Active » Fixed

Looks like this is fixed in the 5.x-1.x version.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.