FIX Localhost HTTP Error "404 Resource Not Found" in XAMPP Apache Server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay so let's see how we can fix this error okay first one is make sure you have the URL right make sure there are no typos and make sure the folder where you have your website is the correct folder so how we can check that is open your zamp and go to Explorer and this will open in Windows it is in C and zamp but if you click on Explorer here in uh zap it will be it will open the correct directory for any OS Okay so inside St docs is where we need to keep our folder of our website so if I reload this again we have this error and our folders name is the code city what we can do is if we go back outside and I see here this is where I have placed my website but if I move it inside St Docs it's here now as you can see and I reload this again now we can see my website hello world so make sure you have not done this mistake make sure your url is correct and make sure you have placed your website in the correct SD docs folder another problem is that you might be facing this error now this is not exactly uh for for resource not found but this is also a common error and after this we will see another reason why there's four or four uh resource on front error now this might be happening because of uh Port issues because other applications also use the port 80 and whenever we put this URL directly here it uses the default Port 80. so what we can do is we can go to zap and we can check which Port here is being used so if it's 8080 what we can do is after localhost we not only we just write 8080 and then write the code city or whatever your folder's name is and now you can see if you can read it also now you can see you'll see your website another reason why we can face this error is due to HD access so SJ access files are used to do several important things but going into it is out of a scope of this video so first what you can do to check if it is an error caused by sdxs or not is you just go to your project folder right right now I don't have an HT access here but if I place this sdx's file that is wrongly configured it's wrong here uh and I reload this page what I'm being done is I'm being redirected to this page or is according to what content is in the htxs file you can face errors like this resource not found so what you can do is you can rename this h6s file like old or just delete it to check if the error is being caused by X3 access now if we change the name this will not not be used by Apache and now if I reload this page now as you can see that error was being caused by S Texas file and now we cannot now we can access this page so make sure you have the corrected success file or uh you can just remove it if it is not required at all okay so we have seen three reasons why we might be facing this error now let's see how we can make some configuration changes so that you know where to place your folder uh first part of this video we saw we can go to Explorer and move our website there or move our folder there now what you can also do is you can go to config here http.com conf and you can search for uh root directory or document home now okay let's search for document so as you can see the documentary root here is C Zam HD docs now if you want it to change to a folder where you have all your websites you can do like xampp my websites or something like that so now this is where you will need to keep all your project folders
Info
Channel: The Code City
Views: 135,591
Rating: undefined out of 5
Keywords: xampp apache error, http error 404. the requested resource is not found. xampp, xampp 404 error, xampp resource not found, xampp apache resource not found, xampp apache 404 error
Id: uPEa7gxOcc0
Channel Id: undefined
Length: 3min 54sec (234 seconds)
Published: Mon May 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.