Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Heady270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

You can do this without using .htaccess at all. What you need to do is define a wildcard DNS record directing all queries on the subdomains to your application server. The using whatever language you are developing in you would check the host header (fully qualified domain name) to identify the user being requested. Then as part of your application code if the user exists do what you need to, if the user does not exist return an error saying that the user does not exist.

NB: This is very much how GitHub Pages works.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme