Drupal in subfolder, multisite, main domain doesn't work, addon domains work

mario_prkos - August 31, 2009 - 19:45
Project:Global Redirect
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have drupal installed into a subdirectory public_html/drupal/. As usual the main domain for my hosting account is "tied" to public_html while addon domains that also use the same drupal as multisites are "tied" to their own subfolders.

Global redirect works fine on the addon domains, but doesn't work on my main domain.

I have found the reason to be in $GLOBALS['base_path'] variable. For the main domain it is "/", for the addons it is "drupal/". That is the reason why for my main domain the IF statement in case goes to TRUE and the script exits with FALSE.

I have created a workaround for my particular main domain so now everything works ok, but this should be implemented as a general solution.

 
 

Drupal is a registered trademark of Dries Buytaert.