Hi all,
Firstly, thanks to everyone that contributes to this site (especially richardk). My site is now running under Plesk with wildcard subdomains!
My question now is what rewrite rule(s) could do something like this...
sub.domain.com/?page=xyz to www.domain.com/?site=sub&page=xyz
i.e The parameters passed are preserved and another parameter indicating the name of the sub domain is added
likewise, variations such as:
www.sub.domain.com/?page=xyz to www.domain.com/?site=sub&page=xyz
and:
www.sub.domain.com/index.php?page=xyz to www.domain.com/?site=sub&page=xyz
(btw, I have access to my httpd.conf, so not limited to .htaccess)
I am sure others would find this usefull too!
Thanks,
Kapo.