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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

If WordPress category links return 404 on Nginx, the usual fault is request routing: Nginx is not sending the category archive URL to WordPress’s front controller. Add the standard try_files fallback in the active server block, then refresh WordPress permalinks. If a PHP page is blank, treat the white screen as a symptom rather than a diagnosis. Check PHP-FPM routing and the WordPress, Nginx, and PHP-FPM logs to identify the actual failure.

Why category URLs fail on Nginx

A WordPress category archive is generated dynamically. The URL may look like a normal directory or file path, but the archive is normally produced by WordPress after its front controller, index.php, receives the request. Nginx must therefore distinguish between files that really exist and pretty URLs that WordPress must interpret.

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.

Unlike Apache, Nginx has no per-directory .htaccess mechanism. Rewrite and fallback behavior belongs in the Nginx virtual host (the server block) that serves the site. If that active configuration only checks the filesystem, a category slug that has no matching directory or file can stop at Nginx and return a 404 instead of reaching WordPress.

The standard single-site fallback is:

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

The first two candidates preserve direct access to real files and directories. The final candidate sends anything else to WordPress’s front controller while retaining the original query arguments. Category archives, post slugs, and other pretty-permalink requests can then be resolved by WordPress.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

What the two symptoms tell you

Symptom Most useful interpretation First evidence to collect
Category URL returns 404, while the home page works The request may never reach WordPress because the Nginx location / fallback is missing or the wrong virtual host is active. Active server block, document root, and try_files directive.
Several pretty URLs fail in the same way The problem is more likely shared request routing or stale rewrite state than one damaged category. Nginx routing and WordPress permalink settings.
PHP page is completely blank A white screen is a symptom. Possible causes include a PHP fatal error, database failure, plugin or theme conflict, or incorrect PHP-FPM routing. WordPress debug.log, Nginx error log, and PHP-FPM log.
Requests produce upstream errors or no PHP output The PHP location may point to the wrong PHP-FPM socket or upstream, or map SCRIPT_FILENAME to the wrong path. FastCGI include, socket or upstream definition, and script filename mapping.

These symptoms can occur together. A broken Nginx fallback explains category 404s, while a separate PHP-FPM path or application error can explain a blank page. Repair the routing layers in order rather than repeatedly resaving permalinks and assuming the server configuration is correct.

Before changing the configuration

  • Identify the Nginx virtual host that actually serves the domain. Editing an unused server block will not change live requests.
  • Confirm the WordPress document root. It must be the directory containing the site’s WordPress files, including index.php.
  • Record the current Nginx, PHP-FPM, and WordPress settings before editing them so you can restore a known working state.
  • Make changes one layer at a time. Test a category URL after Nginx routing is corrected, then investigate PHP output if the response remains blank.

The goal is not to make every request run through PHP. Real static files and directories should continue to be served directly; only requests that do not exist on disk should fall through to WordPress.

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

Repair the Nginx request path

1. Verify the active virtual host

Open the server block selected for the affected domain and check its root value. The root must point to the WordPress installation, not to a parent directory, an old release, or a different site. Also verify that the server block declares index index.php so directory requests can resolve to the WordPress index file.

If the home page appears to work despite a wrong root, do not assume the root is correct. A cached page, a separate virtual host, or a static front page can hide a mismatch. Use the same active server block for the home page and the failing category URL when checking the configuration.

2. Add the front-controller fallback

In the active server block, configure the root location as follows:

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
location / {
    try_files $uri $uri/ /index.php?$args;
}

This is the key repair for category links that return 404 because Nginx cannot find a matching file or directory. $uri checks the requested path as a file; $uri/ checks it as a directory; /index.php?$args forwards the unresolved request to WordPress and preserves the query string.

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

Do not place this fallback only in a location that does not match the category URL. The directive must apply to the site’s normal root requests. A more specific location can still override it, so review the complete server block if one URL behaves differently from another.

3. Check the PHP location and FastCGI hand-off

Once Nginx forwards a category request to index.php, the PHP location must pass that script to PHP-FPM or another configured FastCGI upstream. Verify all of the following in the active configuration:

  • The FastCGI include used by the site is present and appropriate for the PHP setup.
  • The PHP-FPM socket or upstream name exists and matches the service that is running.
  • SCRIPT_FILENAME resolves to the actual document root plus the requested PHP script path.
  • The PHP location is not pointing at an old document root, a different PHP-FPM pool, or a socket belonging to another installation.

A wrong socket or an incorrect script filename can result in blank responses or upstream errors even when the Nginx rewrite is correct. This is why changing WordPress permalinks cannot repair a broken PHP hand-off: WordPress has not successfully executed the request yet.

4. Reload the corrected configuration safely

After editing the server block, apply the configuration using your normal Nginx validation and reload procedure. If the configuration does not validate, restore the previous version and correct the syntax before testing WordPress again. A reload that never completed leaves the old routing rules in place, which can make a correct edit appear ineffective.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Refresh WordPress’s permalink rules

After the Nginx fallback and PHP path are correct, sign in to WordPress and open Settings > Permalinks. Click Save Changes without needing to change the selected structure. WordPress documents this action as a way to reset its permalink rewrite state.

Saving permalinks updates WordPress’s rewrite rules, but it cannot compensate for a wrong Nginx document root, a missing try_files fallback, or a broken PHP-FPM socket. Perform this step after server routing is fixed, not as a substitute for it.

Test a category archive whose URL previously failed, then test a post URL and the home page. If only one taxonomy or one slug remains broken, continue with WordPress-level diagnosis; if all pretty URLs fail, return to the Nginx location and active virtual-host checks.

Diagnose a blank PHP page instead of guessing

A white or empty page does not identify its cause. It can represent a PHP fatal error, a database failure, a plugin or theme conflict, or a server routing problem that prevents PHP from returning usable output. Turn on WordPress debugging and inspect the resulting wp-content/debug.log together with the Nginx and PHP-FPM logs.

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

Enable WordPress debugging and read the evidence

Use the site’s WordPress debugging settings so errors are written to wp-content/debug.log. Reproduce the blank-page request once, then read the entries created at that time. Match the timestamp and requested URL against the Nginx and PHP-FPM logs. A message that names a plugin, theme file, PHP compatibility issue, database operation, or missing script path gives you a specific branch to follow; an empty application log with an Nginx upstream error points back to server or PHP-FPM routing.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Do not treat a blank page as proof that WordPress itself is corrupt. The logs separate application failures from a request that never reached the expected PHP script.

Isolate plugins and themes

If the log identifies a plugin or theme, isolate that component and repeat the request. If the page works after a plugin is disabled, the conflict is in that plugin or in its interaction with the current WordPress or PHP environment. If changing the active theme resolves the problem, inspect the previous theme’s PHP code and compatibility. Re-enable components in a controlled order so the failing one is identifiable rather than reintroducing several variables at once.

Check PHP compatibility and memory limits

When the log indicates a PHP compatibility issue or resource exhaustion, compare the site’s PHP version and configured memory limits with the requirements of the installed WordPress version, theme, and plugins. Correct the incompatible component or adjust the server’s permitted memory where appropriate, then reproduce the request and confirm that the original error no longer appears. Do not infer a compatibility problem solely from a blank screen; use the logged error as the trigger for this branch.

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

Verify WordPress files

If logs point to missing, unreadable, or altered WordPress files, verify the installation files and restore damaged files from a trusted WordPress package or a known-good backup. Preserve site content and configuration while checking the core files. A file check is useful when the failure persists with plugins and themes isolated, but it will not fix an incorrect Nginx root or PHP-FPM socket.

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

Use the logs to choose the next fix

Log evidence Likely layer Action
No WordPress log entry, but Nginx returns a category 404 Nginx request routing Confirm the active server block, document root, index index.php, and root-level try_files fallback.
Nginx reports an upstream or PHP connection problem PHP-FPM hand-off Check the FastCGI include, PHP-FPM socket or upstream, and service path.
PHP-FPM receives the request but the script path is wrong SCRIPT_FILENAME mapping Map the filename to the real WordPress document root and requested script.
wp-content/debug.log names a plugin or theme WordPress extension or presentation layer Isolate the named component and retest before changing unrelated settings.
The log records a database failure WordPress database access Investigate the database error reported at the request time instead of changing rewrite rules.
The log records PHP compatibility or memory trouble PHP runtime or resource configuration Check the PHP version and memory limits, then correct the incompatible code or permitted limit.
Files are reported missing or damaged WordPress installation files Verify and restore the affected files from a trusted package or known-good backup.

The useful distinction is whether the request reached WordPress, reached PHP-FPM, and executed the expected script. Each layer produces different evidence, so the next action should follow the log rather than the visual symptom.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Common fixes that do not solve the underlying problem

Saving permalinks repeatedly

Resaving Settings > Permalinks can refresh WordPress’s rewrite state, but it cannot create an Nginx fallback or repair PHP-FPM. If the category URL never reaches index.php, repeating this action changes nothing.

Adding an Apache-style .htaccess rule

Nginx does not use per-directory .htaccess processing. A rule placed in that file will not configure Nginx’s server block. Put the fallback in the active Nginx virtual host instead.

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

Changing the category slug first

A different slug does not correct shared request routing. When multiple category or post URLs fail, repair the Nginx fallback and refresh permalinks before changing content. Change an individual slug only when logs and routing checks show that the server is already forwarding requests correctly.

Hiding errors without fixing them

Suppressing visible PHP errors may make a white screen look cleaner, but it removes evidence needed to identify the fault. Use logging, reproduce the request, and address the logged PHP, database, plugin, theme, or routing problem.

Validate the repair in the right order

  1. Open the affected domain through the virtual host whose document root contains the WordPress installation.
  2. Request a category archive that previously returned 404. Confirm that the root location / contains the exact try_files $uri $uri/ /index.php?$args; fallback.
  3. Request a known post URL and the home page to ensure the change did not break real files, directories, or other pretty links.
  4. Open Settings > Permalinks and click Save Changes, then repeat the category request.
  5. If any PHP response is blank, reproduce it once with debugging enabled and compare wp-content/debug.log, Nginx, and PHP-FPM timestamps.
  6. Follow the log branch: fix the PHP-FPM socket or script path for upstream errors; isolate plugins or themes for extension conflicts; address PHP compatibility or memory limits when logged; and verify WordPress files when corruption is reported.

A successful repair has both halves: Nginx sends unresolved pretty URLs to WordPress, and the PHP location executes the intended index.php through the correct PHP-FPM endpoint. WordPress’s refreshed rewrite state then determines which category or post archive is rendered.

When to involve a server administrator

Escalate when you cannot determine which Nginx server block is active, do not control the PHP-FPM service or socket, or cannot safely reload the web server. Provide the failing URL, the document root, the relevant location / and PHP configuration, and the matching Nginx, PHP-FPM, and WordPress log entries. That information lets an administrator distinguish a routing edit from an application repair without guessing.

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.

Final decision guide

  • Only category and other pretty URLs return 404: repair the active Nginx root location and then save WordPress permalinks.
  • PHP pages are blank and Nginx reports an upstream problem: verify the PHP-FPM socket or upstream and SCRIPT_FILENAME mapping.
  • PHP executes and the WordPress log names an extension: isolate the plugin or theme, then retest.
  • The log names PHP compatibility, memory, database, or file problems: correct that specific condition; permalink changes are unrelated.

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.