Welcome Guest, Not a member yet? Register   Sign In
Possibility of creating a dynamic wildcard subdomain in CI4
#1

Is there a way to set a route to a dynamic subdomain in CI4 
For exmaple:
PHP Code:
$routes->get('profile/(:segment), 'UsersController::profile/$1''); 

The segment in te abouve code will be the username with we hope to set as a subdomain.
username.example.com

So we can fetch details base on the username.
Reply


Messages In This Thread
Possibility of creating a dynamic wildcard subdomain in CI4 - by seunex - 11-03-2020, 02:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB