Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am running wp subdomain multisite in combination with domain mapping. This means I can create a new subdomain site xyz.site.com and map the domain name 'xyz.com' to that site.

The problem I have is someone clicks 'register' on the subdomain mapped site 'xyz.com' and they are sent to site.com to register.

This is VERY confusing to many people and I'm getting tired of the complaints.

How do I setup wp multisite, so that if a person wants to register on a subdomain site, that they do not leave that site at any point?

I use multisite to host multiple client sites, all which have their own domain names. I simply 'map' the domain name to their subdomain site. This means that users who come to one clients site to register, are being sent to the primary site to register, which is just plain wrong and confusing

share|improve this question
    
What is your setup? Are you using built in features to do this or plugins? Perhaps sharing some settings from you wp-config.php file... –  cwd Sep 2 '11 at 13:55

4 Answers 4

up vote 3 down vote accepted
+50

What @petermolnar suggested also redirects your users to the main site if they want to register (I've tested this but feel free to make use of it. It's good practice).

What you need is a registration/login/edit-profile plugin for the front end: http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/

It's shortcode based so all you have to do is redirect your users to the register page where you have [wppb_register] shortcode. Create register/login/edit-profile pages for each site you need and that's it.

share|improve this answer

There's an option in the network management for this. Unfortunately my only available domain mapped network sites are in Hungarian, sorry if I don't use the exact name of the menu.

Go to Network Administration -> Settings -> Domain mapping.

You'll see a checkbox titled "Redirect administration pages to site's original domain (remote login disabled if this redirect is disabled)", I think you're searching for this.

share|improve this answer

I have found a two step solution for this problem :

  1. Install a redirection plugin and redirect the standard wp-signup.php page to your custom created page.

  2. Create a custom registration page. Install the Multisite User Registration Manager and in the custom registration page include the shortcode for registration form [murm-form]

With this system all of your registration requests for your "subdomain or multidomain " website will be redirected to your custom regisration page. Now you will moderate only the user requests.

share|improve this answer

I had the same problem and I finally fixed it with a small hack to wp-login.php. I just commented out the following lines:

case 'register' :
/*  
if ( is_multisite() ) {
    // Multisite uses wp-signup.php
    wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) );
    exit;
}
*/
share|improve this answer
    
An approach like this means you can never 'automatically' update WordPress as you've hacked a core file. –  Damien Oct 5 '12 at 19:37
    
@Damien I know, this is the only hack I made in a heavily customized multi-site setup. We have a few custom plugins tightly integrated with WordPress default login/registration system which enables login with social networks, register with password and custom roles, email activation, ... all done without a single hack. But for this issue, there was no better approach in my setup. I think this can be improved in WordPress with a simple filter or option in network settings. –  Parham Oct 6 '12 at 17:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.