Register Login

How to Fix Error:'Failed to load resource: the server responded with a status of 404 (not found)'?

28 Oct 2020 4:50 pm || 0

Web developers and common users sometimes face an error while accessing their website called “Failed to load resource: the server responded with a status of 404 (not found)”. In this article, we will take a closer look at this problem and a way to fix this.

How to Fix this Error?

The error is raised when the website is unable to load the CSS and the JavaScript code. This makes the site non-functioning and is a big headache for users. Even if the CSS and JavaScript code is correct, the contents of the page might not load.

The only way to fix this is to make sure that the CSS and JS files are properly linked within the HTML. Check whether the folder, file and directory name of these files are spelt correctly.

Failed to load resource: the server responded with a status of 404 (not found)

Another way to fix this is by using an absolute URL instead of a relative URL. 

For example, instead of using a relative URL path

 <link href="../Jquery/javascript.js”>

Please use absolute URL path

<link href="http://www.mysite.com/Jquery/javascript.js”>