Okay, this might have been answered before but apparently up until now I still haven't found the answer.
You may notice there are some websites that may allow users to register to instantly get a subdomain of their own in the website.
For example, the domain is www.domain.com. If I register a new user as henson, I will get my own page in the website, ex: www.henson.domain.com (not sure if the www part is necessary) So if a user open www.henson.domain.com, it will actually open www.domain.com?owner=henson
Can I do this using only htaccess? Because I read somewhere that this also needs manual creation of subdomains in cpanel (which defeats the purpose of the website).
Oh, the website is coded with flat PHP, so no MVC frameworks. IF someone knows how to do this easily with frameworks (preferably CodeIgniter), be welcome to answer.
Thanks for the answer.
wildcard subdomains
, this can be achieved in.htaccess
. – Faraday