Recently upgraded to Drupal 6.19 and my installation of subdomain is now broken. I do not think that there is a problem between Drupal 6.19 and the subdomain module, but instead that my particular configuration has always been a challenge when installing/enabling the subdomain module.

I am not doing anything particularly challenging. First my drupal installation is in a subfolder 'drupal/' so I use .htaccess to hide the subfolder from view in the URL. I also use .htaccess to force all non-subdomain domains to include www. Second, I also set the $base_url in settings.php to 'http://www.mydomain.org'. And third in the subdomain settings I append 'www' to all non-subdomain domains.

The main point is that this was all working before my Drupal upgrade and now use of the subdomain module is broken and my website is broken. The subdomain module seems to be very finicky when Drupal is installed in a subfolder and when setting the $base_url. I love and need the module for my website, but I need more thorough documentation so I use the module without breaking my website every time I need to disable or reenable the module.

Any help would be appreciated.

One last thing, on the subdomain settings page I am getting setup errors that say subdomains are not pointing to the Drupal directory and that inbound url rewriting is not working. I know that subdomains are pointing to the Drupal folder, but it seems that http://subdomain-test.mydomain.org/subdomain/test is not pointing to a valid node. Is it possible that Drupal 6.19 short circuits the subdomain resolution of that URL?

Comments

webservant316’s picture

Status: Active » Closed (fixed)

solution found over here http://drupal.org/node/423102. apparently when upgrading beyond Drupal 6.16 which I did when I went from 6.16 to 6.19 you must add a '.' in front of your $cookie_domain in the settings file. why this is I do not know.

recommendation for the maintainer to print this fact in bold print in the README.txt, on the project/subdomain page, and on the admin/build/path/subdomain page. could save people some headaches.

thanks again for a great module.

Marko B’s picture

You should be more clear on that, this is an example. $cookie_domain = '.travelnut.me';

Also linking this with this

http://drupal.org/node/904594

webservant316’s picture

ok

drahman’s picture

I was affected by this too when I installed ckfinder and had to uncomment $cookie_domain = '.domain.com and add my domain. I am pretty sure the ckfinder instructions do not have the period in there.

Thanks!