• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routing for subdomain called instead of default method

Hi, I'm trying to make a web that support subdomain for user. My route has something like this

PHP Code:

$routes->get('(:any)''App\Errors::show404', ['subdomain' => '*']); 

Using that route when I open subdomain (say sub.example.com) it will show 404 page which is work as expected. But now when I open the homepage (example.com) it will show 404 page instead of default method.
When I comment the $routes->get('(:any)', 'App\Errors:: show404', ['subdomain' => '*']); line, my homepage will show the default method.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.