在Laravel 5.5中更改基本URL [英] Change Base URL in Laravel 5.5
本文介绍了在Laravel 5.5中更改基本URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将基本URL http://myscreenclass.com/
更改为http://myscreenclass.com/home
.我更改了.env文件并更新了config/app.php文件.我试图以多种方式解决该问题,但没有任何反应.
I 'm trying to change the base URL http://myscreenclass.com/
to http://myscreenclass.com/home
. I changed the .env file and updated the config/app.php file as well. I tried to solve the issue many different ways, but nothing happens.
如何更改URL?
推荐答案
我正在尝试将基本URL http://myscreenclass.com/更改为 http://myscreenclass.com/home
I am trying to change base URL http://myscreenclass.com/ to http://myscreenclass.com/home
我可以建议与Laravel一起阅读路由吗?您可以通过将其添加到网络路由文件中来实现.
May I suggest reading up on routing with Laravel? You can achieve this by adding this to your web routes file.
Route::redirect('/', '/home');
这篇关于在Laravel 5.5中更改基本URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文