如何在laravel删除文件夹中的公共 [英] how to remove folder public in laravel
本文介绍了如何在laravel删除文件夹中的公共的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有laravel设置在XAMPP位于的http://本地主机/ laravel
但测试它,我得去本地主机/ laravel /公共
我该如何摆脱/公众?
我想是能够直接通过 HTTP访问://本地主机/ laravel
解决方案
- 从根拆卸的.htaccess如果您已创建
- 在采取所有文件和文件夹,从公众的根目录
- 从index.php中删除../
- 在重命名或删除公用文件夹
I have laravel setup on xampp located in http://localhost/laravel
but to test it I have to go to localhost/laravel/public
How do I get rid of the /public ?
I would like to be able to access it directly through http://localhost/laravel
解决方案
- REMOVING .htaccess from root if you have created
- take all files and folder from public to root directory
- remove ../ from index.php
- rename OR remove public folder
这篇关于如何在laravel删除文件夹中的公共的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文