Possibility of creating a dynamic wildcard subdomain in CI4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Possibility of creating a dynamic wildcard subdomain in CI4 (/showthread.php?tid=77910) |
Possibility of creating a dynamic wildcard subdomain in CI4 - seunex - 11-03-2020 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. |