• Here’s what I’m trying to do…

    1. I want to have a single install for every subdomain… a.domain.com and b.domain.com both go to the domain.com install
    2. I want to capture the a or b as a global PHP variable before the wp_redirect triggers the URL to be changed to domain.com
    3. I want to use that global variable to change one link on the page. (i.e. if someone goes to a.domain.com and clicks the link on the page, I want to go to https://somesite.com. If someone goes to b.domain.com and clicks the link on the page, I want to go to https://someothersite.com)
    4. If no subdomain is provided (or www) then I want the link to go to https://thirdsite.com

    This is slightly above my wordpress knowledge level so I’m looking for some guidance. I am pretty familiar with customizing wordpress but this is just outside what I know how to do.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘One install for *.domain.com’ is closed to new replies.