Is hyphenated subdomain mapping needed for this to work?
Dru-p - November 3, 2008 - 16:26
| Project: | Subdomain |
| Version: | 6.x-1.4 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Is hyphenated subdomain mapping to a directory structure *needed* for the subdomain module to work?
eg test-subdomain.domain.co.uk --> domain.co.uk/subdomain/testI'm *not* expecting to have hyphens in the configured subdomain names.
I want to force use of www.*, so when necessary .htaccess redirects:
sub1.domain.co.uk/* -redirected to-> www.sub1.domain.co.uk/*
then subdomain module maps:
www.sub1.domain.co.uk/* -module maps to-> www.domain.co.uk/~sub1/* (approximately)
... but my site currently does not need:
www.xyz-sub3.domain.co.uk/* -module translates to-> www.domain.co.uk/~sub3/xyz/* (approximately)
*Unless* the above is just needed for subdomain module to work *or* it's needed to allow Drupal to run in a subdirectory.
Currently the site *is* running in a subdirectory, but am seriously considering moving it to http root.

#1
The subdomain module currently doesn't work with "www" in the way you specified above. That's something that needs more looking into. Patches are always welcome.
Regarding the dashes, Subdomain doesn't interpret dashes in a subdomain as a directory split.
Example:
xyzsubdomain.example.com redirects to example.com/~xyzsubdomain
xyz-subdomain.example.com redirectsto example.com/~xyz-subdomain