07-15-2009, 09:50 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
Threat subdomain as root
I have a domain where I want to use subdomains, but all via files in the root.
I've added a wildcard (*) A dns record on my domain so all subdomains link to the root per default.
Now I want, f.e., test.domain.com link to the root ( domain.com/?id=5), but the subdomain has to remain the path. Still get me? (bla.domain.com has to link to domain.com/?id=6)
Like if i go to: http://another.domain.com/members/5/ it links to the members page in the root (members.php?id=5).
I think this is possible via htaccess, but not sure. Anyone?
|
|
|
|