php-mvc
php-mvc copied to clipboard
Handling dynamic subdomains
So, I am building a project that I would like to use dynamically generated subdomains (let's say for user username.domain.com. How would I handle them in router? is there a way at all in this verison?
The router doesn't deal with subdomains as it is, but you could modify it to route based on the subdomain if you wanted to. Alternatively, you could do it in the base controller class instead.