14 min read
The Requested URL Was Not Found on This Server: 10 Fixes
Short answer: “Not Found. The requested URL was not found on this server” is the default 404 page of the Apache web server. It means the server got your request but has no file or rule for that address. If you are a visitor, the link is wrong or the page was removed. If it is your own WordPress site, the cause is almost always a missing .htaccess file, the mod_rewrite module being off, or permalinks that need to be saved again after a move.
This guide covers both sides. The first part is for visitors who just want to reach the page. The rest is for site owners, laid out as symptom, check, fix, in the order that solves the problem fastest. Everything is current for Apache 2.4, NGINX and WordPress 6.x as of November 2026.
What “The requested URL was not found on this server” means
When you open a web page, your browser asks a server for a path, such as /about/. The server looks for a file or a rule that matches. If it finds nothing, it answers with the HTTP status code 404, which means “not found”.
Different servers word that 404 page differently. The version people search for most looks like this:
Not Found
The requested URL was not found on this server.
Apache/2.4 (Ubuntu) Server at example.com Port 443
That last line is the server signature, and it is the most useful clue on the page. It tells you the request reached Apache, and Apache could not match it. WordPress did not make this page. If WordPress had handled the request, you would see your theme’s own 404 page with your logo and menu.
Other versions of the same error
| What you see | Who produced it | What it tells you |
|---|---|---|
| Not Found. The requested URL was not found on this server. Apache/2.4 Server at… | Apache | Apache had no file or rewrite rule for the path |
| Error: Page not found. The requested URL was not found on this server. | A host’s custom Apache error page | Same cause, different template |
| 404 Not Found, with “nginx” underneath | NGINX | NGINX could not match the path; .htaccess is not used |
| 404. That’s an error. The requested URL was not found on this server. That’s all we know. | A Google page or link (Docs, Sites, Drive, Forms) no longer exists or is not shared | |
| Your theme’s 404 page with the site menu | WordPress | The server works; only that piece of content is missing |
If you are a visitor: how to reach the page
You cannot fix someone else’s server, but you can often still reach what you wanted. Try these in order.
- Check the address. Look for typos, extra characters at the end, or a missing slash. Paths are often case-sensitive, so
/Aboutand/aboutcan be different pages. - Reload the page. Press Ctrl+F5 on Windows or Cmd+Shift+R on Mac to skip your browser’s cached copy.
- Go up one level. Delete the last part of the address and press Enter. For example, change
example.com/blog/old-post/toexample.com/blog/. - Search the site. Open the homepage and use its search box, or search Google for
site:example.complus a few words from the page title. - Try an archived copy. The Internet Archive’s Wayback Machine at web.archive.org often has older copies of removed pages.
- For Google links: if you see “404. That’s an error”, the document may have been deleted or its sharing changed. Ask the person who sent the link to share it again.
- Tell the site owner. A short message with the broken link and where you found it helps them fix it.
If every page on the site shows the error, including the homepage, the site itself is probably being moved or is misconfigured. Waiting an hour and trying again is often all you can do.
If it is your site: find the pattern first
Before you change anything, open three addresses: the homepage, one inner page, and one image file. The pattern tells you where to look.
| Symptom | Most likely cause | First fix to try |
|---|---|---|
| Homepage works, every other page shows the error | Missing .htaccess, mod_rewrite off, or AllowOverride off | Save permalinks, then check the server settings |
| One page shows the error, the rest are fine | Typo, deleted page, or old link | Fix the link or add a 301 redirect |
| Whole site shows the error after a move | Files in the wrong folder, or DNS still points to the old host | Check the document root and DNS |
| Pages load, but images and CSS are missing | Uploads not copied, or wrong site URL | Check wp-content/uploads and Settings, General |
| Only /wp-admin or /wp-login.php shows the error | A security plugin changed the login address | Check that plugin or turn it off over SFTP |
| Error appears only after you changed permalinks | Rewrite rules not written to .htaccess | Make .htaccess writable and save permalinks again |
Fix 1: Save your permalinks again
Symptom: the homepage loads, but posts and pages show the Apache error.
Check and fix:
- Log in to WordPress and open Settings, Permalinks.
- Do not change anything. Click Save Changes.
- Open an inner page in a private browser window.
Saving rebuilds WordPress’s rewrite rules and, if the file is writable, writes them to .htaccess. If you cannot reach the dashboard, the same job can be done over SSH with WP-CLI:
wp rewrite flush --hard
If WordPress shows a message that it could not update .htaccess, it will show you the rules to paste by hand. That leads to the next fix.
Fix 2: Check or recreate the .htaccess file
Symptom: saving permalinks did not help, or WordPress said .htaccess is not writable.
Check: connect with SFTP or your host’s File Manager and open the folder that holds the wp-config file. Turn on “show hidden files”, because names starting with a dot are hidden by default. Look for a file named exactly .htaccess.
Fix: if it is missing or you are unsure what is in it, rename the old file to .htaccess-old and create a new .htaccess with only this block. This is the standard single-site block from the WordPress Advanced Administration handbook:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If WordPress lives in a subfolder such as /blog/, change RewriteBase / to RewriteBase /blog/ and the last line to RewriteRule . /blog/index.php [L]. Multisite networks use a different block, listed on the same handbook page.
Set the file permission to 644 so WordPress can update it later. Then reload an inner page. If the old file had rules from a cache or security plugin, those plugins usually add them back when you save their settings.
Fix 3: Turn on mod_rewrite (Apache)
Symptom: .htaccess is correct, but inner pages still fail.
Check: the mod_rewrite module turns pretty addresses into requests WordPress understands. If it is off, Apache skips the rules inside <IfModule mod_rewrite.c> without any warning. On a server you control, list the loaded modules:
sudo apachectl -M
Look for rewrite_module in the list.
Fix: if nothing appears, turn it on and restart Apache. On Ubuntu and Debian:
sudo a2enmod rewrite
sudo systemctl restart apache2
On shared hosting you cannot run these commands. Ask your host to confirm that mod_rewrite is on. Almost every WordPress host has it on by default.
Fix 4: Allow .htaccess with AllowOverride
Symptom: mod_rewrite is on.htaccess is correct, and the error remains. This is very common on a fresh VPS.
Check: Apache ignores .htaccess files unless the site’s configuration allows them. Open your virtual host file, usually in /etc/apache2/sites-available/, and look for a <Directory> block for your document root.
Fix: set it like this, then test and restart:
<Directory /var/www/html>
AllowOverride All
Require all granted
</Directory>
sudo apachectl configtest
sudo systemctl restart apache2
The Apache .htaccess guide notes that putting rules straight in the main configuration is faster than .htaccess. If you prefer that, paste the WordPress block inside the <Directory> section and set AllowOverride None.
Fix 5: On NGINX, add a try_files rule
Symptom: the error page says “nginx”, or your host runs NGINX.
Check: NGINX does not read .htaccess at all, so editing that file changes nothing. The rule has to be in the server block.
Fix: make sure the location / block contains this line:
location / {
try_files $uri $uri/ /index.php?$args;
}
Run sudo nginx -t to check the syntax, then sudo systemctl reload nginx. Managed WordPress hosts that run NGINX already include this rule, so if you are on one, the cause is somewhere else in this list.
Fix 6: Check the document root and site address after a move
Symptom: the whole site, including the homepage, shows the error right after a migration.
Check: the server serves files from one folder, called the document root. A very common mistake is unzipping a backup into a subfolder, so WordPress ends up in /public_html/mysite/ while the server looks in /public_html/.
Fix:
- Make sure
index.php, the wp-config file,wp-contentandwp-includessit directly in the document root. - In WordPress, open Settings, General and confirm the WordPress Address and Site Address both show the live domain, not a staging or old address.
- If you cannot reach the dashboard, check the
siteurlandhomevalues withwp option get siteurlandwp option get home.
Fix 7: Check DNS after changing hosts
Symptom: some people see the new site and some see the error, or you see the error and your host says the site works.
Check: run dig example.com +short on Mac or Linux, or nslookup example.com on Windows. Compare the IP address with the one your new host gave you.
Fix: if it still shows the old address, update the A record at your DNS provider and wait. Most changes spread within an hour, but some networks take up to 48 hours. Until then, part of your traffic still reaches the old server, which may no longer have your files.
Fix 8: Fix file permissions
Symptom: files exist but some still fail, often with “Permission denied” in the error log.
Fix: folders should be 755 and files 644, owned by the web server user. On a typical Ubuntu server:
sudo find /var/www/html -type d -exec chmod 755 {} \;
sudo find /var/www/html -type f -exec chmod 644 {} \;
sudo chown -R www-data:www-data /var/www/html
Never use 777. It lets anyone on the server write to your files and does not fix a 404.
Fix 9: Rule out a plugin
Symptom: the server side looks right, or the error started right after you installed or updated a plugin.
Check and fix: plugins that hide the login page, manage redirects, add languages, or restrict content all add rewrite rules. To test, rename wp-content/plugins to plugins-off over SFTP and reload the page. If the error goes away, rename the folder back and turn plugins on one at a time until the error returns. The last one you turned on is the cause.
Fix 10: Clear every cache
Symptom: you fixed the cause, but you still see the error.
Fix: a 404 can stay cached for hours. Clear your caching plugin, your host’s server cache, your CDN and your browser. On Cloudflare, use Purge Everything or turn on Development Mode while you test. Then check in a private window.
Special cases we see often
New custom post type or plugin page shows the error
When you activate a plugin that adds a new type of content, such as events, courses, products or listings, WordPress needs fresh rewrite rules for those addresses. Most plugins do this on activation, but some do not. If the new pages show the Apache error while old pages work, save permalinks once. That is all it takes in nearly every case.
WooCommerce account or checkout pages fail
WooCommerce uses endpoints such as /my-account/orders/. If those fail but the main shop works, open WooCommerce, Settings, Advanced, check that the endpoint names are filled in, save, then save permalinks too.
Multisite network subsites show the error
A WordPress multisite network needs a different .htaccess block from a single site, and the block differs for subfolder and subdomain networks. If the main site works and subsites do not, copy the right block from Network Admin, Settings, Network Setup, which shows the exact rules for your install. Subdomain networks also need a wildcard DNS record such as *.example.com.
LiteSpeed and cPanel hosts
Many shared hosts run LiteSpeed instead of Apache. LiteSpeed reads .htaccess in the same way, so fixes 1, 2 and 9 apply unchanged. You cannot change server modules there, so if those fixes fail, open a ticket with your host and include the address that fails, the time you tried it and a copy of your .htaccess. In cPanel, the File Manager has a Settings button where you can turn on “Show hidden files” to see .htaccess.
Only one old page shows the error
If a single page fails and you removed or renamed it on purpose, the server is working as it should. Decide where that visitor should go instead and add a 301 redirect. Redirect to the closest matching page, not to the homepage for everything. Search engines treat a flood of homepage redirects much like 404s, and visitors find them confusing.
A redirect plugin is the easiest way to do this on WordPress. If you prefer to work on the server, a one-line Redirect 301 rule above the WordPress block in .htaccess does the same job on Apache, and a return 301 rule in the server block does it on NGINX.
Read the server error log
If nothing above helped, the log usually names the real problem. On Apache:
sudo tail -f /var/log/apache2/error.log
On NGINX the file is /var/log/nginx/error.log. Load the failing page and watch for a new line.
- “File does not exist: /var/www/html/about” means Apache looked for a real file named about. The rewrite rules never ran, so go back to fixes 2 to 4.
- “Permission denied” points to fix 8.
- No new line at all means the request is going to a different server, so check DNS (fix 7) or your CDN.
On shared hosting, the error log is normally in your control panel under Logs or Metrics.
How to stop 404 errors coming back
- Redirect moved pages. When you change a page address or delete a page, add a 301 redirect to the closest page. A redirect plugin such as Redirection can also log the 404s visitors hit.
- Watch Search Console. The Pages report lists “Not found (404)” URLs Google found. Check it after any big change.
- Keep a copy of your working .htaccess and server configuration, so a bad edit is a quick restore.
- Back up before moving hosts, and test the copy on a temporary address before you switch DNS.
- Make your theme’s 404 page useful, with a search box and links to main sections, so visitors who do land there can keep going.
Does this error hurt SEO?
A few 404s for pages you really removed are normal. Google expects them and they do not hurt the rest of your site. A site-wide 404 caused by a broken server setting is different. If Google crawls while every page returns 404, it can drop those pages from results until it crawls them again. Fix it quickly, then use URL Inspection in Search Console to ask Google to recrawl your most important pages.
For related server problems, see our guides on fixing a critical error on a WordPress site and fixing server error 500 in Elementor. If you edit .htaccess often, our list of .htaccess testing tools lets you check rules before they go live.
Ten-minute checklist
If you just want the short version, work down this list and stop when the error goes away:
- Open the homepage, one inner page and one image to see the pattern.
- Save permalinks in Settings, Permalinks.
- Check that .htaccess exists in the WordPress folder and holds the standard block.
- Confirm mod_rewrite is on (ask your host on shared hosting).
- Confirm AllowOverride All for the document root on your own server.
- On NGINX, confirm the try_files line.
- After a move, check the document root, the site address and DNS.
- Rename the plugins folder to rule out a plugin.
- Clear every cache and test in a private window.
- Read the error log for the exact reason.
What we could not confirm
Hosting control panels change their menus often, so the exact place to find the File Manager, error log or cache button on your host may differ from the names used here. The commands shown are for Ubuntu and Debian servers; other Linux systems may use httpd instead of apache2.
Frequently asked questions
What does “The requested URL was not found on this server” mean?
It is Apache’s default 404 message. The server received your request but found no file or rule for that address, so it could not show a page.
Is it the same as a 404 error?
Yes. The status code is 404 in every case. The wording only tells you which software produced the page: Apache, NGINX, Google or your WordPress theme.
How do I fix “the requested URL was not found on this server” in WordPress?
Save your permalinks under Settings, Permalinks. If that fails, recreate .htaccess with the standard WordPress block, then make sure mod_rewrite is on and AllowOverride is set to All. On NGINX, add the try_files rule instead.
Why does my homepage work but other pages show the error?
The homepage is a real file, index.php. Other pages need rewrite rules to reach WordPress. When those rules are missing or ignored, only the homepage works.
What does “404. That’s an error” from Google mean?
It is Google’s own 404 page. The Google document, site or link you opened was deleted, moved or is no longer shared with you. Ask the owner to share it again.
I see this error on a site I do not own. What can I do?
Check the address for typos, reload, go up one level in the address, search the site, or look for an archived copy on the Wayback Machine. If none of that works, the page was probably removed.
Can a plugin cause this error?
Yes. Login-hiding, redirect, language and membership plugins all add rewrite rules. Rename the plugins folder to test, then turn plugins back on one by one.
I am on shared hosting and cannot run commands. What now?
Save permalinks, recreate .htaccess in the File Manager, and check the site address in Settings, General. If the error stays, ask your host to confirm mod_rewrite and AllowOverride are on.
Related reading