Is it possible to map user profile pages to sub-domains in WordPress? I have a membership site and the urls are currently in the form
www.example.com/users/SampleUser
However, I want the URL to look like sampleuser.example.com
. Is there anyway of achieving this? The users are creating their own profiles by the way on signup and I want it to do this mapping automatically if possible.
You'd want to do this through htaccess. The below will map
www.example.com/users/sampleuser
tosampleuser.example.com/
Hope this helps :)