WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
How to get the original domain (4 posts)

  1. edmilner
    Member
    Posted 8 months ago #

    WP: 3.6.1, WordPressMU: 0.5.4.3

    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

    http://wordpress.org/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 8 months ago #

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

  3. arif.vbridge
    Member
    Posted 8 months ago #

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

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 8 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.