title: Create subdomain masking for each user in WordPress
body: <p>I am trying to add subdomain URL for each user.</p>
  
  <p>For eg: if my site has a user name as John then the URL which he will be sharing with his users is <code>http://john.example.com</code> and this should open the home page for my site  <code>http://example.com</code>.</p>
  
  <p>My site is in WordPress and hosted over WP Engine server.<br>
  I have enabled the wildcard domain mapping from WP Engine also added respective A records.</p>
  
  <p>Now the issue is, if I try to hit <code>http://john.example.com</code> WordPress redirects me to <code>http://example.com</code>.</p>
  
  <p>Instead I want it to stay and send a request like <code>http://john.example.com</code> => <code>http://example.com?user=john</code>.</p>
  
  <p>Do I need to write any htaccess/nginx rule for this?</p>