Ad

Change Base URL In Laravel 5.5

- 1 answer

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.

How can I change the URL?

Ad

Answer

I am trying to change base URL http://myscreenclass.com/ to http://myscreenclass.com/home

May I suggest reading up on routing with Laravel? You can achieve this by adding this to your web routes file.

Route::redirect('/', '/home');
Ad
source: stackoverflow.com
Ad