![]() |
Routes without subdomain - 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: Routes without subdomain (/showthread.php?tid=88832) |
Routes without subdomain - normunds - 11-17-2023 How to set routes that work only with main domain and do not work with subdomains? Trying this way: PHP Code: $routes->group('', ['subdomain' => ''], static function ($routes) { Results are: site/search (works, ok) site/búsqueda (404, ok) es.site/search (works, not ok !!!, must be 404) es.site/búsqueda (works, ok) RE: Routes without subdomain - kenjis - 11-18-2023 Try to use https://codeigniter4.github.io/CodeIgniter4/incoming/routing.html#limit-to-hostname |