PATH public folder CSS/JS/JPG
Posted: Thu Oct 22, 2020 4:15 pm
Hello 
VestaCP user, I just switched to myVesta (Debian 10).
I created my domain with a pointing to my public folder. The redirection only goes well, my source links CSS / JS / JPG do not take the redirection into account.
My structure is as follows (MVC type):
HTML
With VestaCP it works like this:
With myVesta, I have to specify the public folder in order to take into account the CSS (same with the images and the JS)
I will be able to remedy this but it requires reviewing all the development front.
What update was there on myVesta?
Thank you
.
(sorry for my english)

VestaCP user, I just switched to myVesta (Debian 10).
I created my domain with a pointing to my public folder. The redirection only goes well, my source links CSS / JS / JPG do not take the redirection into account.
My structure is as follows (MVC type):
Code: Select all
...
public/
|_ styles
|_mystyle
|_assets
|_compass
|_img
|_js
...
...
With VestaCP it works like this:
Code: Select all
<link rel="stylesheet" href="/styles/mystyle/assets/compass/stylesheets/layout.css?d={{ now | date('Yi') }}" type="text/css" media="screen">
Code: Select all
<link rel="stylesheet" href="public/styles/mystyle/assets/compass/stylesheets/layout.css?d={{ now | date('Yi') }}" type="text/css" media="screen">
What update was there on myVesta?
Thank you

(sorry for my english)