When it comes to developing WordPress in a local environment, XAMPP is a pop and trusted tool. However, that doesn't mean you won't ever encounter errors. I you might encounter is the HTTP error 404 "The requested resource is not found."

If yous encounter this issue, there are several ways to try to resolve information technology. These fixes aren't overly complicated and don't take a lot of time to perform. With a little patience, you lot should exist back up and running in no fourth dimension. In this article, we'll explicate what the error "requested resource is not found" in XAMPP is. Then, nosotros'll share 5 tips for how to set up the trouble and get you back on track.

What the XAMPP HTTP Error 404 "The Requested Resource Is Non Found" Ways

A 404 error is one of many HTTP status codes that are sent from a server to a customer. In full general, this error indicates that the browser is requesting something that can't be found on the server.

A typical 404 error.
An HTTP 404 error.

Information technology can be challenging to determine the source of a 404 fault, as there are several potential causes. These tin can include:

  • The domain no longer exists.
  • The requested resources has been deleted or moved to a unlike URL.
  • The URL was mistyped into the browser.

You've probable run into these situations when browsing the web. Withal, you tin can encounter 404 errors when working on localhost with XAMPP besides. In this case, y'all may also encounter the message expressed as Error 404 "the object is not found."

How to Fix the HTTP Mistake 404 "The Requested Resources Is Not Found" in XAMPP (v Tips)

At present that yous understand what this particular XAMPP error is, permit'south explore how to fix information technology using the following v tips.

i. Be Certain You lot Typed the URL Correctly

Before you endeavour whatsoever other fixes, we recommend double-checking that you haven't mistyped or included annihilation unnecessary in the URL. For example, a mutual mistake is including "XAMPP" when it's not needed:

An example of mistyped localhost URL.
An instance of mistyped localhost URL.

Errant keystrokes are a frequent cause of this error simply are also easy to set up. If yous're sure you've entered the correct URL and are all the same having bug, there are a few other solutions you tin try.

ii. Cheque Your .htaccess File

A missing .htaccess file can also cause a 404 error. Therefore, it's of import to be sure the file exists in the right location, especially if you run into the "the object is not establish" version of the fault.

To notice the file, you can navigate to the XAMPP folder on your estimator. Inside this folder, in that location will be some other i called htdocs. This folder is probable where yous installed WordPress when y'all initially prepare up your website. You should find the .htaccess file there:

The location of the .htaccess file.
The location of the .htaccess file.

If you are using a macOS, the file volition still be in the htdocs folder. However, yous'll find it via Applications > Xampp > xamppfiles > htdocs.

If the file doesn't exist, you'll need to create one. To exercise this, open your preferred text editor and name the file ".htaccess". The exact code you need to paste into it may vary depending on your setup, but it should await something similar this:

          # BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress        

Save the file to the binder you created for your website. Fifty-fifty if you don't discover an obvious problem with your .htaccess file, sometimes simply replacing information technology with a fresh one tin can set the mistake.

three. Deactivate and Uninstall New Plugins

When you install plugins, they may brand changes to your code or database that can cause this 404 error. Starting with your newer plugins, you can endeavour deactivating or uninstalling them to see if that fixes the trouble.

Plugins tin be deactivated from the admin dashboard of your local site. To do and so, in the carte du jour on the left of the screen, click on Plugins > Installed Plugins. To deactivate 1, click on the Deactivate link under the name of the plugin:

Deactivating a WordPress plugin.
Deactivating a WordPress plugin.

If yous want to uninstall a plugin completely, you can practice then from the same screen. Starting time, conciliate the plugin, then click on the red Delete link that below the name of the plugin:

The option to delete a plugin after you've deactivated it.
The option to delete a plugin after you've deactivated it.

Even if yous haven't installed whatsoever plugins recently, this is worth trying, since updates to plugins can sometimes cause problems. You tin can also deactivate all of your plugins at once by renaming the plugins folder in your site's directory.

Subscribe Now

4. Check Your Database for Changes

Fifty-fifty if you uninstall a problematic plugin, the changes it made to your site may continue to crusade bug. If y'all suspect this is the example, you may want to bank check your local site'southward database for changes.

To admission the database, you tin can type http://localhost/phpmyadmin into your browser. Alternatively, from the XAMPP control panel, you can click on the Admin push button side by side to MySQL to open phpMyAdmin.

You can open phpMyAdmin from the XAMPP control panel.
You lot can open phpMyAdmin from the XAMPP control panel.

At present you tin can click on the Databases tab at the tiptop of the screen. Locate your website's database in the list to view the tables information technology contains:

The default WordPress database tables.
The default WordPress database tables.

Next, yous'll desire to comb through the database and look for anything that shouldn't be there. Some plugins will add entirely new tables to your database. To remove an unnecessary table, click on the Drop link to its right:

Removing tables from a WordPress database.
Removing tables from a WordPress database.

Most plugins will make changes to the wp_options table, and then you'll desire to accept a look at that entry. You lot tin also check the core WordPress tables. While plugins shouldn't change these tables, information technology is possible, specially if yous installed a nulled plugin.

If you're unsure what your database or tables are supposed to expect like, you may want to create a new WordPress site. Then you tin compare the fresh database to yours.

five. Check Your Apache Configuration

If yous're having trouble opening a PHP file, your Apache configuration could exist incorrect. More specifically, there may be a conflict with the port that Apache is trying to use.

Apache uses port 80 by default, merely you may need to change it if y'all already have something listening on that port. To observe a free port, you tin can click on the Netstat button in the XAMPP command panel:

A list of ports in Netstat.
A list of ports in Netstat.

If port fourscore is already in utilise, or if you just adopt to exit it open, you can go alee and choose a free port number. We'll use "8080" for this example, but you can use whichever port you'd like.

Next, you'll demand to edit the httpd.conf file. Yous can find it in C:\xampp\apache\config if you lot're using Windows:

The httpd file location in Windows.
The httpd file location in Windows.

If you're working on macOS, you can find this file in the /etc/apache2 directory. You lot can locate it using the Become to Folder option in Finder.

Once yous've institute the file, become ahead and open up it in your preferred text editor. There are two lines y'all'll need to edit:

          Listen 80 ServerName localhost:eighty        

Modify the Listen port number to 8080 and the ServerName to localhost:8080. At present you can save and close the file.

At this point, you tin can restart the Apache server and try to admission localhost:8080 (or whichever port you're using) in your browser. If you're non successful, yous'll need to edit the http-ssl.conf file. Windows users can find this file in xampp\ apache\ conf\ actress.

The httpd-ssl file location in Windows.
The httpd-ssl file location in Windows.

Once again, you should be able to locate this file on a macOS by typing /etc/apache2 into Finder's Become to Folder.

Once located, yous can open the file in a text editor. At that place are three lines that you'll demand to update in this file:

          Mind 443 <VirtualHost _default_:443> ServerName localhost:443        

Locate each of these lines in the file and modify the values to "8080". After saving the file, you tin restart the Apache server again. Now you should be able to access localhost:8080 in your browser.

Summary

The "requested resource is non found" mistake can undoubtedly deadening you down when y'all're working with XAMPP. There are a few possible causes for this consequence. Fortunately, the solutions for resolving it aren't complicated.

In this post, we covered a few means you can attempt to fix the XAMPP Mistake 404. You can commencement by ensuring that you've entered the URL correctly, and move on from there. With whatsoever luck, you lot'll be back to piece of work in no time.

If you enjoyed this tutorial, so you'll honey our support. All Kinsta'south hosting plans include 24/7 back up from our veteran WordPress developers and engineers. Check out our plans today to larn more!


Save fourth dimension, costs and maximize site performance with:

  • Instant aid from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience achieve with 29 information centers worldwide.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one programme with no long-term contracts, assisted migrations, and a thirty-twenty-four hours-money-back-guarantee. Check out our plans or talk to sales to find the program that'southward right for you.