Closed (fixed)
Project:
Global Redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2010 at 11:34 UTC
Updated:
9 Feb 2010 at 11:34 UTC
$_SERVER['SCRIPT_NAME'] is not index.php, but the drupal-path, when mod-rewrite is set in the declaration instead of .htaccess files.
This causes hook_init to return false on every pageload.
It can be solved by adding the pass-through flag to the the RewriteRule directive:
Change
RewriteRule ^/(.*)$ /index.php?q=$1 [L,QSA]
to
RewriteRule ^/(.*)$ /index.php?q=$1 [L,QSA,PT]
Posted it here if anyone else should run into similar problems :-)