I have the following structure:
The directory example
is my directory root
, for the project; in the Filetest_web_full_1.php
I try to load the file BS
and it gives me an error 404
and I have no idea why, this is the path I'm using:
<link rel="stylesheet" href="../../src/sources/bs5/bootstrap.min.css">
Someone tell me the error. I do not see it.
I already found the error...
this can only be implemented in the
html
when the folder is insideroot
and not outside... I had to move the folder to:"example/resources"
this happens because the "" resolves on the client side (frontend)... therefore, when trying to obtain the resource, it will not find that
url
one since it is not part ofroot
the site's directory.In theory, it only works when the language that implements it resolves on the server side (backend) and there is the mechanics of loading files that way, such as in
php
.