Laravel4 : The requested resource /admin was not found on this server

✔ Recommended Answer

It may that under public you have a folder named admin. That can be source of your problems.

Source: stackoverflow.com

Answered By: marko

Method #2

The error message "The requested resource /admin was not found on this server" in Laravel 4 typically means that the URL you are trying to access does not exist in your application.

To troubleshoot this error, you can try the following steps:

  1. Check your routes: Make sure that you have defined a route for "/admin" in your application's routes file. You can check the file app/routes.php and ensure that there is a route that corresponds to the URL you are trying to access.

  2. Check your controllers: Ensure that you have a controller method that corresponds to the route you defined in step 1. If you do not have a controller method for the route, you will need to create one.

  3. Check your views: If you have a controller method for the route and it is still not working, check that you have a view file that corresponds to the route. The view file should be located in the app/views directory.

  4. Check your web server configuration: If none of the above steps work, check your web server configuration to ensure that it is set up correctly. Make sure that your web server is pointing to the correct directory where your Laravel application is located.

Hopefully, one of these steps will help you resolve the error and get your Laravel 4 application working correctly.

Comments

Most Popular

Remove Unicode Zero Width Space PHP

PhpStorm, return value is expected to be 'A', 'object' returned

Laravel file upload returns forbidden 403, file permission is 700 not 755