php-mvc icon indicating copy to clipboard operation
php-mvc copied to clipboard

Handling dynamic subdomains

Open 1337haxx0r opened this issue 2 years ago • 1 comments

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?

1337haxx0r avatar Mar 25 '23 06:03 1337haxx0r

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.

daveh avatar Mar 27 '23 07:03 daveh