Support » Plugin: WordPress MU Domain Mapping » How to get the original domain

  • WP: 3.6.1, WordPressMU:

    I’ve used WordPressMU domain mapping for a 1.5 years and am happy with it. I’ve been given a new site customization requirement that requires me to capture the domain that was used to access a site (before being mapped and redirected to the primary domain). I will use the original domain to perform logic in the child theme functions.php file.

    How can I capture and store the original domain so I can use it later in the child theme part of the page construction? I’ve tried globals, session variables, but they are always over-written with the primary domain after the redirect.
    Thanks, Ed

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ron Rennick


    You’ll have to write a plugin to store the URL before the redirect and retrieve it after the redirect.

    Can i need to install WPMS on two different server. One for main site and next one for sub-site ( and another for Is this plugin help me to done this

    Plugin Author Ron Rennick


    Is this plugin help me to done this

    No. You don’t need any plugins to do what you are describing. WP can be installed in a subdomain.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get the original domain’ is closed to new replies.