find and solve || findandsolve.com
Please wait.....

Failed to load resource the server responded with a status of 404 (Not Found)

We are facing a common error while accessing their website called “Failed to load resource: the server responded with a status of 404 (not found)”.

JS
<script  src="../Jquery/jquery.multiselect.js"></script>

<script src="../Jquery/prettify.js"></script>
CSS
<link  href="../Jquery/jquery.multiselect.css" rel="stylesheet"/>

<link href="../Jquery/style.css" rel="stylesheet" />
<link href="../Jquery/prettify.css" rel="stylesheet" />

Issue :- HTTP Error 404. The requested resource is not found.


Answer



Option 1.

Your files are not under the Jqueryfolder that's why it is not found. You have to go back again 1 folder Try this:

<script src="../../Jquery/prettify.js"></script>


Option 2.

If you use ASP.NET you have added app.UseStaticFiles(); this code in your startup.cs than it is fixed


Option 3.

Change <base href="/"> to <base href="./"> from index.html


Option 4.

404 literally means that the file was not found. It's simple as that. Check if the URL is right, and there are no redirections being done(use fiddler). Perhaps the protocol should be HTTPS:// instead of HTTP://? Perhaps you need "www" in the URL?

Mahira  khanna

Mahira khanna

I have the skills you need for you company blog, website, or other content materials

If findandsolve.com felt valuable to you, feel free to share it.

Comments



Report Response