I am trying to add subdomain URL for each user.
For eg: if my site has a user name as John then the URL which he will be sharing with his users is and this should open the home page for my site
My site is in Wordpress and hosted over WpEngine server I have enabled the wildcard domain mapping from WpEngine also added respective A records.
Now the issue is if I try to hit WordPress redirects me to
instead I want it to stay and send a request like =>
do I need to write any htaccess/nginx rule for this?