menu

arrow_back Error in loading styles and scripts for the 404 page?

by
1 vote
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?

3 Comments

404 - file not found, check if paths are correct.
Alexei Ukolov , Changing the paths to absolute corrected the situation, thank you.
Can you tell me what the problem could be?
Relative paths to resources, instead of absolute paths.

1 Answer

by
 
Best answer
0 votes
Relative paths to resources, instead of absolute paths.