Proper base url |
Hello Everyone,
I'm experiencing an issue with the base URL. I've tried changing the base URL in the .env file as follows: Code: app.baseURL = 'http://localhost/amp' The requested resource /amp/ was not found on this server. When I try accessing another link, such as Code: /amp/frontend Code: Controller or its method is not found: \App\Controllers\Amp::frontend Here’s the route configuration I used: $routes->group('amp', function($routes) { $routes->get('/', 'Dashboard::index'); $routes->add('authsso/(egment)', 'Dashboard::authsso/$1'); $routes->post('dashboard/grafik', 'Dashboard::grafik'); }); Does anyone have a solution for this issue?
Read docs https://codeigniter4.github.io/userguide...-subfolder
and baseURL ending slash. (11-09-2024, 10:10 PM)ozornick Wrote: Read docs https://codeigniter4.github.io/userguide...-subfolder I have tried adding a trailing slash, but I’m still getting the same error. Is hosting with a subfolder the same as using a reverse proxy? Because I was provided a reverse proxy with the domain Code: binamarga.pu.go.id/amp/ |
Welcome Guest, Not a member yet? Register Sign In |