php - How to automatically parse a subdomain with WordPress -


we have unique wordpress installation , front page iframe needs redirect address depends on url it's being accessed (more specifically, depends on subdomain).

let's say, if address :

<subdomain>.<domain> 

then iframe should redirect to:

<subdomain>.<otherdomain> 

ex: chc.mynewdomain.com
should contains iframe redirecting to:
chc.myolddomain.com

the questions are:
1- how have subdomains go unique wordpress install?
2- how parse subdomain in underlying wordpress (php) code, possibly check against white list of subdomains, , build dynamically iframe url?

to have subdomains go same wordpress install:


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -