In my development environment, this module works as expected; however in my Staging and Production environments, it does not work.

The Drupal root installation in Staging & Production are in:

https://www.mysite.com/subfolder

Does anyone know how to solve this problem?

Thanks

Comments

jaydee1818’s picture

Issue summary: View changes
jaydee1818’s picture

Issue summary: View changes
jaydee1818’s picture

Issue summary: View changes
David Sparks’s picture

This is the culprit, line 303 of globalredirect.module (in 7.x-1.5):

  if ($_SERVER['SCRIPT_NAME'] != $GLOBALS['base_path'] . 'index.php') {
    return FALSE;
  }

This is there for compatibility with some other contributed modules, apparently - but it prevents Global Redirect from running when the installation's in a sub-folder.

See https://www.drupal.org/node/304025

There's a patch you can apply in that thread - but the right way to do this would be to create your own custom version of this module, to avoid any problems when updating modules.

klausi’s picture

Status: Active » Closed (duplicate)