Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Fix a 404 Not Found Error on Your WordPress Site

Learn why WordPress pages return 404 errors and follow the correct fix for permalinks, Apache, Nginx, IIS, moved URLs, and plugin or theme conflicts.
Length10 min Posted Quest giverVGSources Team

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start in WordPress: open Settings → Permalinks and visit the screen. WordPress flushes its rewrite rules when that screen is loaded; saving is optional for the flush. Test the failed URL again. If it still returns 404, identify whether the site runs on Apache, Nginx, or IIS, then repair that server’s rewrite configuration. Finally, check for a URL that was renamed or moved and isolate plugin or theme conflicts.

What a WordPress 404 means

A 404 Not Found response means the requested address could not be mapped to content. On a WordPress site, that can happen at two different layers:

As an Amazon Associate I earn from qualifying purchases.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • The web server rejects the request first. Apache, Nginx, or IIS may not be forwarding a “pretty” URL such as /guides/controller-settings/ to WordPress. In that case WordPress may never run.
  • WordPress receives the request but cannot find content. WordPress then uses the active theme’s 404 template. WordPress’s Codex notes that every theme shipped with WordPress includes a 404.php file, although a theme does not have to provide a custom design.

The distinction determines the fix. A broken rewrite rule affects many URLs, while a deleted or deliberately renamed post normally affects one address. A branded 404 page proves only that a 404 response was displayed; it does not prove that the request reached WordPress.

First, measure the scope of the failure

Use a private browser window or clear any page cache, then test four addresses. Record the exact result for each one rather than relying on a single broken link.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
  1. Homepage: the site’s root address.
  2. One known post: choose a published article that worked previously.
  3. One known page: for example, an About or Contact page.
  4. An administration URL: open /wp-admin/ and, if necessary, the login screen.
Observed pattern Most likely area Next action
Homepage works; nearly every post and page 404s Pretty-permalink rewrite rules Visit Settings → Permalinks, then inspect the server branch for Apache, Nginx, or IIS.
Only one old or renamed URL 404s Content address changed, was deleted, or was mistyped Confirm the current permalink and add a 301 redirect when the move was intentional.
Homepage, content, and administration URLs all fail Domain, document-root, virtual-host, or server configuration Ask the hosting or server administrator to inspect the request before WordPress.
Plain permalinks work, but Post name fails Rewrite rules are not reaching WordPress Flush permalinks and repair the web-server rewrite configuration.
A WordPress-styled 404 appears only after a plugin or theme change Plugin or theme routing conflict Perform the isolation procedure later in this guide.

If a request fails before the homepage or /wp-admin/ can load, do not begin by installing a redirect plugin. A redirect tool cannot create a missing server rewrite rule.

Flush WordPress rewrite rules

Permalinks tell WordPress how URL paths map to posts, pages, categories, and other content. A change of structure, migration, or plugin activation can leave those rules stale.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Sign in to the WordPress dashboard.
  2. Go to Settings → Permalinks.
  3. Wait for the Permalink Settings screen to finish loading.
  4. Open a known post and page in a new tab and test them.
  5. If the site still fails, return to the screen and click Save Changes once, then test again.

WordPress’s Permalinks documentation, updated June 8, 2024, states that visiting this screen triggers a flush of rewrite rules; there is no need to save solely to perform the flush. Saving can still be useful when you intentionally changed the structure or want to confirm that WordPress can write its rules.

Do not switch permalink structures merely as a trial unless you understand the consequences. Changing a structure changes public URLs and can create additional redirect work. If Plain links work while Post name links do not, that is a strong indication that the request is not being rewritten by the server, rather than evidence that the post itself is missing.

Repair an Apache configuration

Apache commonly uses the mod_rewrite module and a site-root .htaccess file for WordPress permalinks. You need access to the site files and permission to change the Apache configuration, or help from your host.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Check that mod_rewrite and overrides are available

Ask the server administrator to confirm that Apache’s mod_rewrite module is enabled and that the virtual host permits directory overrides. A correctly written .htaccess cannot work if Apache is configured to ignore it. The exact control panel labels differ by host, so do not assume that a missing file is the only problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect the site-root .htaccess file

Back up the existing file before editing. In a standard single-site installation, the WordPress rules resemble the following structure:

# 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

The important behavior is that existing files and directories are allowed through, while other requests are sent to /index.php. Do not blindly replace a file that contains host-specific rules, security directives, or a subdirectory path. If WordPress is installed in a directory rather than the domain root, the base and target path must match that installation.

Use the rules shown in the dashboard when the file is not writable

After you visit Settings → Permalinks, WordPress displays the rules it would write when it cannot modify .htaccess. Copy those rules exactly into the correct site-root file using your host’s file manager, SFTP, or another approved method. Preserve a backup and verify that the file is named .htaccess, including the leading dot; a file named htaccess.txt will not be read as the same file.

File permissions are a separate issue from rewrite syntax. Making a file broadly writable can create a security problem. Prefer a one-time administrator edit or the hosting provider’s documented permission settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Retest after the Apache change

  1. Save the server change and allow Apache to reload if your host requires it.
  2. Visit a known post, a page, and the homepage.
  3. Test with a cache-bypassing request or a private window so an old cached 404 does not mislead you.
  4. If only one path remains broken, stop changing rewrite rules and investigate that content’s slug, status, or redirect.

Repair an Nginx configuration

Nginx does not provide an .htaccess-type directory configuration. WordPress’s Nginx documentation explains that WordPress cannot automatically modify the server configuration or generate these rules for you. Searching for an .htaccess file is therefore not the primary Nginx fix.

Use a server-level try_files rule

The administrator normally adds a rule in the relevant Nginx server block. The Learn WordPress example is:

location / {
    try_files $uri $uri/ /index.php?$args;
}

This tells Nginx to serve a real file or directory when one exists and pass other paths to WordPress’s front controller while preserving query arguments. The location block must be placed in the correct virtual host and must coexist with the site’s PHP-FPM configuration. A syntactically valid rule in the wrong server block will not fix the domain you are testing.

Apply and test safely

  1. Have the server administrator validate the Nginx configuration before reloading it.
  2. Reload Nginx using the host’s normal deployment procedure.
  3. Retest a known post and page, not only the homepage.
  4. Check the Nginx error log if the response is still 404 or changes to a 403/502 error.

On managed hosting, you may not have access to the server block or logs. Give support the failing URL, the working homepage URL, the result of the /wp-admin/ test, and whether Plain permalinks work. That information lets them distinguish a rewrite problem from a missing file or upstream failure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Repair an IIS configuration

Sites hosted on Microsoft IIS use web.config for rewrite configuration. WordPress’s directory-installation documentation identifies web.config as the IIS counterpart to Apache’s .htaccess.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Confirm that the IIS URL Rewrite feature is installed and that the site’s web.config contains the WordPress rewrite configuration appropriate to the installation path. Do not paste Apache directives into web.config; the syntax and server module are different. If you do not administer IIS, ask the host to verify the site binding, document root, URL Rewrite module, and rewrite rule together.

After the administrator applies the change, repeat the four-scope test. If the homepage loads but only one moved URL fails, IIS is no longer the first suspect.

Fix URLs changed by a migration, rename, or move

A domain or path migration can leave WordPress generating links for the old address. A post can also have a new slug after an editor renames it. In either case, a 404 may be correct for the old address unless you deliberately preserve it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After a domain or directory migration

  1. Confirm the site’s intended domain and installation path with the person who controls DNS and hosting.
  2. Update WordPress’s site URL settings to the new address using the method appropriate to the installation.
  3. Visit Settings → Permalinks to refresh rewrite rules after the path change.
  4. Test the homepage, a post, a page, media links, and /wp-admin/.

Mixed old and new addresses can also come from stored content, cached redirects, or a proxy. Change one layer at a time and keep a record of the old value so you can reverse an incorrect edit. If you cannot reach the dashboard after the migration, the host or site administrator must correct the URL configuration through the available server or database procedure.

After intentionally renaming or moving content

Open the item in the editor and confirm its current permalink and publication status. If the old address should continue to work, create a permanent 301 redirect from the old URL to the new one. A redirect-management plugin can be appropriate for this content-level task, provided the server already sends requests to WordPress. It cannot repair a missing Apache, Nginx, or IIS rewrite rule.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Do not redirect every unknown URL to the homepage. That hides broken links, confuses visitors, and makes it harder to tell whether a URL was mistyped, deleted, or blocked before WordPress.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Isolate a plugin or theme conflict

Once server rules and permalink settings are correct, a plugin or theme can still alter routing, register a conflicting rewrite, or generate an invalid link. Isolate the cause without changing several variables at once.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Disable plugins one at a time

  1. Make a current backup and ensure you can regain dashboard access.
  2. Open Plugins → Installed Plugins.
  3. Deactivate one plugin, then test the same known URL.
  4. If the 404 disappears, reactivate other plugins individually to confirm which one is involved.
  5. Update, reconfigure, replace, or remove the confirmed conflict according to its documentation.

Do not deactivate all plugins and then reactivate them in a batch; that loses the evidence about which change affected the request. If the dashboard itself is inaccessible, use the host’s approved file or recovery method to disable plugins, then restore them one at a time.

Temporarily switch to a default theme

If plugins are not responsible, switch briefly to a current default WordPress theme and retest. A theme may contain custom rewrite logic, a malformed template, or a custom 404 handler. If the problem vanishes, document the result and ask the theme developer or site maintainer to inspect its routing code. Restore the original theme after testing if the site’s design must remain live.

A theme’s 404 template controls the page visitors see after WordPress decides content is missing; it does not fix a request that the web server rejected before WordPress ran.

Use the failure pattern to choose the right fix

Failure scope Control you have Best first remedy When to escalate
All pretty URLs fail, Plain works Dashboard only Visit Settings → Permalinks, then send the server type and test results to hosting support. Immediately, because Apache, Nginx, or IIS configuration is outside the dashboard.
All pretty URLs fail, server files available Apache, Nginx, or IIS administration Repair the appropriate rewrite configuration and reload or save it safely. If logs show a different virtual host, document-root, permission, or PHP error.
One renamed URL fails WordPress editor Confirm the new slug and add a 301 from the old address when required. If the new URL also fails, return to rewrite and plugin checks.
Only URLs introduced by one feature fail Dashboard and plugin settings Deactivate that plugin, retest, and inspect its rewrite or endpoint settings. If the conflict remains after deactivation, test the theme and server logs.
Everything, including administration, fails No server access Contact the host with exact URLs, timestamps, and the scope test. Always; the failure may precede WordPress.

Common mistakes that prolong a 404

  • Regenerating only the theme’s 404 page: a template changes appearance, not server routing.
  • Looking for .htaccess on Nginx: Nginx requires a server-level configuration such as try_files.
  • Installing a redirect tool for every 404: redirects address moved content, not a missing rewrite rule.
  • Changing the permalink structure repeatedly: every change can create new public URLs and additional redirect work.
  • Editing production files without a backup: preserve the current configuration and make one controlled change at a time.
  • Testing only the homepage: the homepage can work even when every post and page is failing.
  • Assuming a cached response is current: test privately or bypass caches after each server change.

When to contact hosting or a server administrator

Escalate when you cannot edit the relevant configuration, when the homepage and administration URL fail together, or when the server returns a 404 before WordPress can display its template. Include:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • The exact failing URL and one URL that works.
  • The results for the homepage, a known post, a known page, and /wp-admin/.
  • Whether Plain permalinks work and whether visiting Settings → Permalinks changed anything.
  • The server type, if known: Apache, Nginx, or IIS.
  • Any recent migration, domain change, permalink change, plugin activation, or theme change.
  • The time of the failure and whether it affects visitors, administrators, or both.

Ask the administrator to check the active virtual host or site binding, document root, rewrite module, configuration syntax, and server logs. Those checks are more useful than repeatedly resaving a post or replacing the 404 template.

Quick recovery checklist

  1. Test the homepage, a known post, a known page, and /wp-admin/.
  2. Visit Settings → Permalinks; save only if you changed the structure or want to confirm write access.
  3. Identify the server: Apache uses mod_rewrite and .htaccess; Nginx uses a server-level try_files rule; IIS uses web.config.
  4. If a migration or rename occurred, correct the site URL or current slug and add a 301 only for an intentional move.
  5. Disable plugins one at a time, then test a default theme if the server configuration is sound.
  6. Escalate with the scope results and exact URLs when you lack server access or the request fails before WordPress.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.