【发布时间】:2018-07-31 02:04:03
【问题描述】:
我有这个程序运行良好,没有任何错误 并且在随机时间,我得到了这个错误页面。
抱歉,找不到您要查找的页面。
在我尝试访问的任何页面中。此错误会持续几分钟,稍后会自行清除,因为相同的页面会按预期显示。
很少的路由代码
Route::get('/', 'indexController@index')->name('index-post-page');
Route::get('/login', 'indexController@login')->name('index-login-page');
Route::get('/post/{post_id}/{title}','indexController@SinglePost')->name('SinglePost-page');
Route::get('/account/contributor/dashboard','indexController@ContributorsDashboard')->name('page-contributor-admin');
Route::prefix('account')->group(function() {
Route::get('/', 'indexController@accountDashboard')->name('admin-home-page');
Route::get('/nonadmin', 'indexController@accountDashboardNonAdmin')->name('page-non-admin');
Route::get('/nonadmin', 'indexController@ContributorsDashboard')->name('page-non-admin');
Route::get('/admin/add/category', 'indexController@AddCategory')->name('page.add.category');
Route::get('/admin/view/category', 'indexController@viewCategory')->name('page.load.all.category');
Route::get('/admin/audit/featured', 'indexController@AuditFeatured')->name('page.feature.unfeature.post');
Route::get('/post/notification/data/{contributor_id}', 'indexController@PostNotificationReportData')->name('admin.post.notification.report.data');
})
检查了错误日志,我看到的只是 ERROR 404(找不到页面)- 尽管该页面存在
我想相信这不是程序问题,而是服务器问题,因为我在另一台服务器上托管了相同的脚本并且一切顺利。
但我不知道该告诉服务器管理员什么导致错误或我需要他修复什么。
网址:program link
登录链接:AUTOMATIC_LOGIN
谁能给我一个提示或究竟是什么导致了这个随机错误 404
【问题讨论】:
-
我有这个程序可以完美运行,我随机得到这个错误页面。我不会说它运行完美 ;-)
-
读取.htacess文件似乎有问题,它一直重定向到
/public/login,通常它只会到/login -
调整您的 .htaccess 并仔细检查文件的所有权和权限。
-
我实际上使页面重定向到登录页面,直到他们从同一域名上的另一个应用程序登录 @Sérgio Reis
-
好吧,除非您向我们展示任何代码,否则我们只能猜测......
标签: php laravel error-handling http-status-code-404