Is it possible to create path like subdomain for custom module menu?
For example create url like xyz.example.com if path is example.com/xyz where xyz is custom module menu.
I've already tried to use .htaccess file
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$
RewriteRule ^xyz(.*) http://xyz.example.com/$1 [R=301,L]
It correctly changing url from example.com/xyz to xyz.example.com but xyz.example.com redirected me to HOME page of the site.
I just want to change the url from example.com/xyz to xyz.example.com where module result will be displayed.
Thanks.
EDIT : My requirement is similar to this