There is site site.ru
, and the script index.php?page=videos
, but I want it to open on urla site.ru/myvideo/
But in this case, all CSS/JS
, specified not in an absolute way, but relative ( script src="scripts/jquery.js"
), will not be displayed when opening the site.ru/myvideo/
folder.
How can I still configure nginx
for this situation?
I realized that it is necessary to make a location
block, and try_files
in it, but what is more accurate?