Having problem with subdomains :(
In Routes:
Route::group(['domain' => 'www.app.me'], function(){
Route::get('/', 'SiteController@index');
Route::get('/{uri}', 'ShortnerController@redirect');
});
Route::group(['domain' => 'app.me'], function(){
Route::get('/', 'SiteController@index');
Route::get('/{uri}', 'ShortnerController@redirect');
});
Route::group(['domain' => 'platform.app.me'], function(){
Route::get('/', 'PageController@index')->before('auth');
});
Route::group(array('domain'=>'agent.app.me'), function(){
Route::get('/', 'AgentController@index')->before('auth');
});
When I go to app.me or www.app.me it shows the SiteController@index If I go to agent.app.me it shows AgentController@index
But the problem is if I go to platform.app.me it redirects to app.me
How to solve this?
In cPanel a managed redirections like this:
Subdomains.Root Domain Document Root Redirection
agent.app.me /public_html not redirected
platform.app.me /public_html not redirected