F
F
Fa1c2015-09-15 00:16:21
PHP
Fa1c, 2015-09-15 00:16:21

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

Tried without .htaccess`a - to no avail.
Rights everywhere 777
I don’t know where to look, maybe someone came across?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
littleguga, 2015-09-15
@Fa1c

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.

F
Fa1c, 2015-09-15
@Fa1c

1)
2)
3)
55ee11c7a2924ff294a043f5be3e4b1a.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question