如何从Laravel URL删除公共 [英] How to remove public from laravel url
本文介绍了如何从Laravel URL删除公共的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想简单地一步一步从我的Web网址中删除公开内容
I want to remove public from my web URL simply step by step
我已经完成了一些步骤,例如从公共目录复制文件索引和htaccess文件,但仍然找不到页面
I have done some steps already like copying the file from public the index and htaccess file but still I am getting not found page
推荐答案
如果已经完成了2个步骤,请更改具有内部供应商文件夹路径的index.php,删除/../,一切正常
If you have done 2 steps already have you change the index.php having vendor folder path inside remove the /../ and everything work fine
$app = require_once __DIR__/../'/bootstrap/app.php';
到
$app = require_once __DIR__.'/bootstrap/app.php';
这篇关于如何从Laravel URL删除公共的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文