Skip to content
Advertisement

Laravel – 404 Not found every page except homepage

I’m newbie on Laravel. I’m using Laravel 5 – Wamp on Windows 8. Every page on my localhost have 404 not found error except homepage. Although I can access them with index.php . For example URL is :

http://localhost/mpr/public/index.php/register

is okay. Actually

http://localhost/mpr/public/register

has an error (404 not found).

I’ve checked rewrite_module but it was not changed. Any suggestion?

Advertisement

Answer

On command prompt, go to your laravel folder,

cd C:/wamp/www/laravel-app-folder

and run

php artisan serve. 

Now try to access your app on localhost:8000

Now, you will be able to access your routes like localhost:8000/register

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement