-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them
Description
CodeIgniter version: 4.3.1
(1) hostname
takes precedence over subdomain
if a route has both:
$routes->get('/', 'Home::index');
$routes->get('/', 'Media::index', ['hostname' => 'media.example.com:8888', 'subdomain' => '*']);
http://media.example.com:8888/ci431/public/
→ App\Controllers\Media::index
http://user.example.com:8888/ci431/public/
→ App\Controllers\Home::index
(2) subdomain
takes precedence over hostname
if two routes matches:
$routes->get('/', 'Home::index');
$routes->get('/', 'Media::index', ['hostname' => 'media.example.com:8888']);
$routes->get('/', 'All::index', ['subdomain' => '*']);
http://media.example.com:8888/ci431/public/
→ App\Controllers\All::index
http://user.example.com:8888/ci431/public/
→ App\Controllers\All::index
Metadata
Metadata
Assignees
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them