Laravel specific folders act as root

Viewed 20

I came across problem in laravel, cant find a solution, maybe you could help me out.

I have many folders with HTML documents that are linked (same folder as HTML) with css, some of css are inside assets, includes, root folder.

Folders structure

I can access these html files by going https://website.com/live/1/index.html but the problem is that laravel sees css and other files in website root folder https://website.com/assets/app.css instead of https://website.com/live/1/assets/app.css

I think I could find a solution in htaccess by typing RedirectMatch 301 ^/(assets/.+)$ /live/1/$1 but then it means, that I have to create and edit htaccess everytime for a new folder.

Maybe someone has any solution to this problem ?

0 Answers
Related