Hi, I have a shared host. In local host everything work good but when I upload my project on my host the path of subdomain doesn't work. I mean when I open www.example.com or api.example.com they work but if I want to open api.example.com/login or any other paths I get 404 error. Why do happen those? What do I do?
Hi @sinnbeck, I don't know what is frontpage. I google it but google give me Microsoft Front Page. Can you describe it for me, please?
Here is my RouteServiceProvider:
/**
* Define the "web" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @return void
*/
protected function mapWebRoutes()
{
Route::name('web.')
->middleware(['web'])
->domain(subdomain(env('WEB_SUBDOMAIN')))
->namespace($this->namespace . '\Web')
->group(base_path('routes/web.php'));
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes()
{
Route::middleware(['api'])
->domain(subdomain(env('API_SUBDOMAIN', 'api')))
->namespace($this->namespace . '\Api')
->group(base_path('routes/api.php'));
}