Answer the question
In order to leave comments, you need to log in
Why are scripts connected to 404 pages in a different directory?
Good!
On a simple html site of 5 pages, such a problem came to light, when I go to a non-existent file, for example
https://site.ru/assets/images/uploads/1/2/3/image.jpg
I get a 404 page without registration.
In console
Загрузка < script > по адресу «https://site.ru/assets/images/uploads/1/2/3/assets/js/vendor/modernizr-3.3.1.min.js» не удалась.
<script type="text/javascript" src="assets/js/vendor/modernizr-3.3.1.min.js"></script>
RewriteEngine On
RewriteBase /
ErrorDocument 404 /404.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question