I'm trying to deploy my Laravel 5.5 project on my web hosting ( PHP version 7.1.xx ). I have multiple hosting on the same server so when I connect using FTP that what I have:
-WEBSITE NUMBER 1
-- WordPress files
-WEBSITE NUMBER 2
-- WordPress files
-WEBSITE NUMBER 3
-- WordPress files
Now what I want is a subfolder of www.WEBSITENUMBER3.com/app/ running laravel. So I did 2 folders at the same level:
-WEBSITE NUMBER 1
-- WordPress files
-WEBSITE NUMBER 2
-- WordPress files
-WEBSITE NUMBER 3
-- WordPress files
-- app
-- laravelApp
Inside of app folder I put the files of the Public directory of Laravel, and in the laravelApp folder I put all my laravel project ( except public folder ) Now the problem is that when I visit www.WEBSITENUMBER3.com/app/ all the links are broken, bootstrap doesn't get load because he tries to load :
www.WEBSITENUMBER3.com/bootstrap
instead of www.WEBSITENUMBER3.com/app/bootstrap
so all the things of my Application. So is there a way to change the root where laravel works? I found impossible and wrong change all links in Laravel manually to make them absolutely I want to keep them relative.