Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Username as subdomain


Boone Gorges
Keymaster

@boonebgorges

Do you mean that you want username.websitename.com to point to the user profile?

That’s easy enough if all you want is a redirect from username.websitename.com to websitename.com/members/username – you can do this with a straightforward RewriteRule in .htaccess. If you want to keep username.websitename.com for the entire session (so links like username.websitename.com/profile, username.websitename.com/friends, etc persist in the address bar), it’ll be pretty complicated. It’d mean reconfiguring a pretty big chunk of bp-core/bp-core-catchuri.php and/or bp-core.php to make sure that the $bp global is set correctly, as well as some .htaccess rules to make sure that URLs throughout buddypress that point to websitename.com/members/username/x get redirected to the right place.

Skip to toolbar