https://github.com/xRomax/WorkLeader I have an admin.php template that connects styles, scripts. There is a php file with a layout for each page, take main.php. If you simply register http: // WorkLeader / admin, everything works, the admin.php template is loaded and main.php is loaded into it as content, but if you add a slash to the end, http: // WorkLeader / admin / and the template does not load, there is, that is, the tags themselves are shown, but files with styles, scripts are not connected. It also does not work by itself if you try to go to the http: // WorkLeader / admin / login page, the login.php file itself is loaded, but the styles and scripts do not work, and if you simply write login in routes, everything works, but again however, if you add a slash at the end, again the same thing.

1 answer 1

<script src="public/scripts/jquery.js"></script> nothing worked

<script src="/public/scripts/jquery.js"></script> everything worked