[development] subdomain rewriting
Bèr Kessels
ber at webschuur.com
Mon May 22 19:28:50 UTC 2006
Okay, slightly off topic and maybe even support, but still IMO very usefull
for others, if possible:
I have pathauto rewrite term/tag paths in the form of
example.com/places/Amsterdam
And I would love that to be available on
amsterdam.example.com
I dot mind using rewrite rules, but prefer not to use redirects.
I also developed a small module that uses hook_term_path (Dries: hint!) [1]
to rewrite any rendered "places" links as subdomain links, so that is all
taken care of.
The only part that remains is the hard part, if possible at all: using apache
rewrites to rewrite amsterdam.example.com -> example.com/places/amsterdam
Any apache and/or rewrite gurus around who did this, or know if this is
possible at all?
Regards, Bèr
[1] http://api.lullabot.com/api/HEAD/function/taxonomy_term_path
--
PGP ber at webschuur.com
http://www.webschuur.com/sites/webschuur.com/files/ber_webschuur.asc
PGP berkessels at gmx.net
http://www.webschuur.com/sites/webschuur.com/files/ber_gmx.asc
CVS onder de knie krijgen:
http://help.sympal.nl/cvs_onder_de_knie_krijgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20060522/3ce11ad4/attachment.pgp
More information about the development
mailing list