Actually our website creating by using Java technologies so installed Tomcat,apache on VPS and deployed. we are creating sub domains for registered customers we have enabled the Wildcard by creating A record with *.mydomain name.
after that we have to handle sub domains in Apache... Once Apache is set up and we have to verify it works for random subdomains, have to write rewrite rules to map the subdomains to another URL (doesn't matter what lang we are using).
Hence UserName8328.domain.com would actually request something like domain.com/users/UserName8328 from your server.
So can you please suggest me how to do this ? For this question there is another link
This question discusion going this link with JAVA. Mean while we struck up with Apache related issue. can you help on this ? https://stackoverflow.com/questions/19188877/what-is-best-way-to-create-sub-domains-dynamically-by-using-java-whenever-user-r