Ready to get started?Download WordPress


WordPress MU Domain Mapping
[resolved] Wp_logout Issue with Domain Mapping (3 posts)

  1. fcvolunteer
    Posted 11 months ago #

    I'm using a multisite and I set my site up at parentsite.com/mysite. My theme has a logout button (not in the admin bar) and when it was clicked it worked correctly and logged the users out and brought them back to the homepage. Here's what the code was:
    <a class="logout with-icon" href="<?php echo wp_logout_url( get_permalink() ) ?>" data-icon=""><?php _e('Log out', 'franklin') ?></a>

    Then I bought a new domain name (mysite.com) for the site, installed this plugin and set up the A name to point to parentsite.com/mysite. Everything works fine except instead of the logout button bringing them to the homepage of mysite.com it brings them to the homepage of parentsite.com with this in the url: http://parentsite.com/?dm=cd427564d8195660acb35d2669c96069&action=logout&blogid=8&k=87e709a6777fa366cd42edc1c52f1db9&t=1751394297

    I've tried changing the code to:

    <a class="logout with-icon" href="<?php echo wp_logout_url('http://mysite.com') ?>" data-icon=""><?php _e('Log out', 'franklin') ?></a>

    but that didn't help. I've also tried

    <a class="logout with-icon" href="<?php echo wp_logout_url('http://parentsite.com/mysite') ?>" data-icon=""><?php _e('Log out', 'franklin') ?></a>


    <a class="logout with-icon" href="<?php echo wp_logout_url( home_url() ); ?>" data-icon="&#xf0

    Any ideas?


  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 11 months ago #

    Try turning off the remote login setting in domain mapping.

  3. fcvolunteer
    Posted 11 months ago #

    @Ron - Thanks for the super-fast reply. Remote login was turned off but Redirect administration pages to site's original domain was turned on. I turned it off and it works now!

    Thanks so much! I was at my wits end :-)


You must log in to post.

About this Plugin

About this Topic