I've many domains running on the same script with htaccess and php; this is the scheme:
index.php running on www.maindomain.com, then
www.domain1.com -> index.php?dn=domain1.com
www.domain2.com -> index.php?dn=domain2.com
www.domain3.com -> index.php?dn=domain3.com
...
Now I want this:
subdomain1.domain1.com -> index.php?dn=domain1.com&cat=subdomain1
subdomain2.domain1.com -> index.php?dn=domain1.com&cat=subdomain2
...
subdomain1.domain2.com -> index.php?dn=domain2.com&cat=subdomain1
subdomain2.domain2.com -> index.php?dn=domain2.com&cat=subdomain2
...
How I can obtain this with htaccess?
index.php running on www.maindomain.com, then
www.domain1.com -> index.php?dn=domain1.com
www.domain2.com -> index.php?dn=domain2.com
www.domain3.com -> index.php?dn=domain3.com
...
Now I want this:
subdomain1.domain1.com -> index.php?dn=domain1.com&cat=subdomain1
subdomain2.domain1.com -> index.php?dn=domain1.com&cat=subdomain2
...
subdomain1.domain2.com -> index.php?dn=domain2.com&cat=subdomain1
subdomain2.domain2.com -> index.php?dn=domain2.com&cat=subdomain2
...
How I can obtain this with htaccess?





