• Hello,

    I’ve created a subdomain – jobs.healthitlink.com – and I’m wondering if there is a way that my users, on healthitlink.com, can access the subdomain without having to register and create a new username/password/profile.

    Is there a way to simply map the user data to the subdomain? Or some way to merge the two domains so that they act as one?

    Thanks for any help!
    Rob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Robert

    (@robg48)

    Hey Everyone,

    Well, I have it so that my users can use the same username/password to log into either site.

    But, they still have to login twice to access both sites. They can use the same credentials, but the have to login on each site separately.

    Is there a way that they can login just once and they’re able to go back and forth between the domain and the subdomain without having to login twice?

    Thanks!
    Rob

    Hey Rob,

    WordPress allows using custom “user” and “usermeta” tables in the wp-config.php file:

    http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables

    So; if you have two separate WordPress installations in the same database, you can use the user-usermeta tables from the primary installation like below:

    define( 'CUSTOM_USER_TABLE', 'hhl_users' );
    define( 'CUSTOM_USER_META_TABLE', 'hhl_usermeta' );

    Change the hhl prefixes with the prefix of your primary WP installation and you’re good to go.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mapping users/profiles to a subdomain’ is closed to new replies.