Ultimate Member on MultiSite: One user profile for all?
-
Hi there, I don’t really need the feature for having different profiles and profile settings on the WP network subdomain sites and so I wonder, how could I remove the distinction between main site profile and sub site profile(s)?
I came up with an addition to .htaccess to redirect all access from
*.mysite.com/user/
tomysite.com/user/
, this is it:RewriteEngine On
RewriteCond %{HTTP_HOST} !^mysite\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.mysite\.com$ [NC]
RewriteRule ^user/$ https://mysite.com/user/ [R=301,L]
RewriteCond %{HTTP_HOST} !^mysite\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.mysite\.com$ [NC]
RewriteRule ^user/(.*)$ https://mysite.com/user/$1 [R=301,L]It’s working, but is it a “good” solution? Is there another way to unify profiles? I checked out the “Ultimate Member – Multisite” add-on plugin from https://github.com/umdevelopera/um-multisite, but instead of unifying all profiles, this syncs main and subdomain profiles.
It also adds new users to all subdomains automatically which I do not want at all. Because on this site each user will use the main site at first, and will be added to only one subdomain site later.
- You must be logged in to reply to this topic.