Answer the question
In order to leave comments, you need to log in
Why doesn't it load the file with styles and pictures?
I write an engine, I use logic - MVC. My entry point is an index file at the root of the site. I put the layout files in the views, at the entry point I simply connected the template file itself, as a result, the page itself is displayed, to which neither styles nor pictures are connected, as if they are absent at all, the paths are correct - 100%. If you prescribe the path from the root (where the entry point itself lies, then everything is connected, if you specify the path through the views, then it does not see and does not connect, stupidly returns the Html page itself in the included file, and the same with js connected files).
OS - Ubuntu
Web Server - apache, content:
I use .htaccess
AddDefaultCharset utf-8
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
Answer the question
In order to leave comments, you need to log in
1. What does the browser console write? (f12)
2. NEVER NEVER FOR ANYTHING, bet 777. You can't, no, you can't, no, and in this case you can't either.
Here it is well painted what rights to set. If so, write in the comments - I will translate the answer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question