首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Laravel-5.2登录给一个找不到的页面

Laravel-5.2登录给一个找不到的页面
EN

Stack Overflow用户
提问于 2016-01-14 14:23:43
回答 1查看 1.2K关注 0票数 1

我刚装了一份新的拉拉5.2。插入命令: php make:auth转到浏览器,输入:http://localhost/mywebsite/public/login。我得到了一个错误:网页找不到。我在用WAMP。

编辑:这就是它在Chrome上的表现:

未找到

在此服务器上找不到请求的URL /mywebsite/public/login。

Route.php:

代码语言:javascript
复制
<?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');
});

编辑2:

尝试之后,我只能访问第一个页面,但是如果尝试其他路由,work.All路由将不会返回不存在的页面。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-14 15:10:04

在Apache中启用mod_rewrite,使默认的.htaccess文件能够正确工作。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34791943

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档