1

I just installed a fresh copy of laravel 5.2. inserted the command: php artisan make:auth gone to the browser, typed : http://localhost/mywebsite/public/login. and i got this error: The webpage cannot be found. I am using WAMP.

Edit: This what it gives on Chrome:

Not Found

The requested URL /mywebsite/public/login was not found on this server.

Route.php:

<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', function () { return view('welcome'); }); Route::get('test', function () { return view('index') ; }); Route::group(['middleware' => 'web'], function () { Route::auth(); Route::get('/home', 'HomeController@index'); }); 

Edit 2:

After trying i only can access the first page, but if i try any other route it won't work.All routes return non existent pages.

14
  • Can you explain the error in more detail that would certainly help! Is it a chrome error or a laravel one? Commented Jan 14, 2016 at 14:33
  • well actually i haven't tried it on chrome, i only tried it on internet explorer. Commented Jan 14, 2016 at 14:34
  • Right, well is the error message from the browser or your laravel application? If it's your browser then you either haven't started wamp or hitting the wrong url. Commented Jan 14, 2016 at 14:35
  • 1
    try localhost/mywebsite/public/index.php/login if that works then you need to enable your mod_rewrite settings in apache Commented Jan 14, 2016 at 14:56
  • 1
    Ok, so i tried what you told me Haakym and it worked.Thanks. Commented Jan 14, 2016 at 15:06

1 Answer 1

4

Enable mod_rewrite in Apache for the default .htaccess file to work correctly.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.