Hello, I'm trying to create subdomains for users and there's no way to get URL's like :

http://username.domain.com/name-of-content

I go to the automated alias settings page and I set in node path Settings
http://[subdomain].domain.com/[title-raw]
When I create a node I get:
http://domain.com/http://username.domain.com/name-of-content

if I use
[subdomain]/[title-raw]
if get:
http://domain.com/username/name-of-content

My htaccess is ok and works with wildcard subdomains.
This is my first installation of the module and I haven't updated it from any previous version.

Do I have to setup anything else on pathauto? Am I doing something wrong?

Thanks in advance.

Comments

meramo’s picture

As far as I remember the module also require domain CNAME (or TXT) changes, have you performed them?

savioret’s picture

Found the solution !!!!

the key is the "tilde" character...

~[subdomain]/[title-raw]

this works as expected.
Why it is not documented in the readme.txt ?

savioret’s picture

Status: Active » Closed (fixed)

Well, the problem was that I didn't change the action for the TILDE in the pathauto settings to "Do nothing".

[subdomain]/[title-raw] is correct.

finex’s picture

I've set:

[subdomain]/[title-raw].html

but it doesn't work: nodes posted into a group doesn't use the subdomain uri. Look at: http://drupal.org/node/666502

vimalramaka’s picture

~[subdomain] works! Just [subdomain] is just creating example.com/subdomain/title-raw. When tilde (~) is added, domains are produced like this: subdomain.example.com/title-raw