The site is made by static pages, without cms. For the site made a separate 404 page. In htaccess is redirecting all non-existent pages to 404.php. For most non-existent pages all works correctly.
But there are some pages for which this page does not load styles, scripts and images. In the console
displays a message: Failed to load resource: the server responded with a status of 404 () for files with styles, scripts and images.
Can you tell me what the problem may be and what are the ways to solve it?