Good day to all.
Site header , navigation and basement are in separate php files inside the pages folder ( mysite.ru/pages/header.php , etc.). The navigation file contains relative links to the pages. If I use index.php (it is located in the root of the site, with the help of include "file_name.php"; include the necessary files), then everything works correctly. If I refer to these files from a subfolder, then the links no longer go to search for files in the root, but in this very subfolder (for example: mysite.ru/folder/index.php instead of mysite.ru/index.php ). How to fix this moment in navigation?
PS If my solution (only index.php is in the root, header, navigation and basement in the pages folder, and files on sections of the site in other folders) is stupid / incorrect, then tell me how best to do it.
DOCUMENT_ROOTto base file paths - vp_arth/var/www/domains/t/te/tes/- Ivan Lazarevdefine('ROOT_PATH','app/files/')and dance from it. - SLy_huh