Hi,
i am trying to get subdomains work on my site.
I have installed it as per the read me file. The core is patched, the .htaccess is patched and the module is installed.
DNS is set up alright since abc.example.com and xyz.example.com all come to the main page.

Unfortunately, I am unable to get the subdomains to work. I am using it in organic groups mode. When I use [subdomain] token with pathauto, apparently, it is not doing what it is supposed to. For example, if I create an organic group called 'dummy', the URL is getting renamed as http://example.com/%5Bsubdomain%5D-2 rather than dummy.example.com I guess the pathauto module does not recognize [subdomain] token. Is there a way to verify that it does? Am I supposed to see [subdomain] in the list of available tokens on the pathauto configuration page?

Your help will be appreciated.
Thanks!

Comments

shas3n’s picture

Hi,
found that I was not using the latest version of pathauto. After getting the latest version, the subdomain token works but it does not work as a subdomain.
My pathauto configuration string is [subdomain]/[type-name]/[title-raw]
I was hoping that I would see the URL as http://groupname.example.com/blog/dummy-title But I only see http://example.com/groupname/blog/dummy-title
Am I doing something wrong?

setvik’s picture

Hi shas3n,

I apologize for the belated reply.

I've been completely swamped recently and neglectful of the issue que.

You need to do two things:

First: Change your pathauto settings to allow underscores "_" in the token values

Second: There's a bug in the patch I included: edit the patch_subdomain_url_drupal_5.7.patch patch and replace all occurrences of "og_subdomain" with "subdomain".

or, if you've already applied the patch, directly edit includes/common.inc and replace all occurrences of "og_subdomain" with "subdomain"

setvik’s picture

Status: Active » Fixed

Update:

I released beta2 which fixes the bugs in beta1 code and documentation.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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