WordPress category links usually return 404 on Nginx when the request never reaches WordPress’s front controller. Put the standard try_files fallback in the active Nginx server block, confirm that PHP requests reach the correct PHP-FPM socket or upstream, then resave permalinks in WordPress. A blank PHP page is a symptom rather than a diagnosis: enable logging and use the PHP, Nginx, and WordPress logs to identify the actual failure.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
What is failing: the category URL, PHP execution, or both?
A WordPress category archive is generated dynamically. The category does not normally exist as a physical directory or file on disk. When a visitor opens a pretty URL such as /category/news/, Nginx must pass that request to WordPress’s index.php. WordPress then interprets the path and builds the archive.
As an Amazon Associate I earn from qualifying purchases.
Nginx does not use per-directory .htaccess files. Rewrite and fallback behavior belongs in the Nginx server block (the virtual host that serves the site). If the server block checks only for files and directories, a category URL can stop at Nginx and return 404 before WordPress has a chance to handle it.
A white or blank PHP response is a different symptom. It can result from a PHP fatal error, a database failure, a plugin or theme conflict, an incompatible PHP version, an exhausted memory limit, or a broken FastCGI route. The blank output alone cannot identify which one occurred.
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
Use the correct Nginx fallback for WordPress
For a standard single-site installation, the important part of the active location / block is:
location / {
try_files $uri $uri/ /index.php?$args;
}
Nginx evaluates the alternatives from left to right:
Free tools Windows power users keep installed
One-click scans. No signup required.
$uriserves a real file, such as an image, stylesheet, or JavaScript asset.$uri/serves a real directory when one exists./index.php?$argsforwards anything else to WordPress while preserving the original query string.
The third alternative is what category archives, post slugs, pages, and other pretty URLs need. Without it, Nginx treats a virtual WordPress route as a missing filesystem object.
Repair the configuration step by step
1. Confirm the active virtual host and document root
Make changes to the server block that actually answers the domain. On a shell with permission to inspect Nginx, dump the loaded configuration and locate the server block for the site:
sudo nginx -T
Check that its root directive points to the directory containing the WordPress files and that the server block declares PHP as an index file:
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
index index.php;
A correct try_files line in an unused or disabled virtual host will not affect requests. Likewise, a correct rewrite with the wrong document root can send Nginx to a directory that does not contain the intended index.php.
2. Add the front-controller fallback
Inside the active location / block, add or correct:
try_files $uri $uri/ /index.php?$args;
Do not replace the fallback with a filesystem path to a category directory. Categories are WordPress routes, not directories that need to be created manually. Keep the query-string suffix so requests that include parameters reach WordPress intact.
3. Check the PHP location and script mapping
Nginx must pass PHP requests to PHP-FPM (or to the configured FastCGI upstream), and PHP-FPM must be told which script file to execute. In the PHP location, verify all three pieces:
- The FastCGI parameter include used by the server.
- The
fastcgi_passdestination, which must match the PHP-FPM socket or upstream that is running on this host. - The
SCRIPT_FILENAMEmapping, which must resolve to the real document root plus the requested script name.
A typical mapping has the following form; retain the socket or upstream name already defined in your installation rather than copying a path from another server:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #3
- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
location ~ .php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php_fpm_upstream;
}
The identifier in fastcgi_pass is installation-specific. It may refer to a Unix socket or a named upstream. A stale socket, a stopped PHP-FPM service, or a script filename that points outside the WordPress root can produce upstream errors or a blank response even when the Nginx rewrite is correct.
4. Validate and reload Nginx safely
Test the complete loaded configuration before reloading:
sudo nginx -t
Only after the test reports success should you reload Nginx:
sudo systemctl reload nginx
If the test fails, restore the last known-good configuration and correct the reported file and line. A reload is not a substitute for a successful syntax test.
Recommended Free Tools
5. Refresh WordPress’s permalink state
In the WordPress administration area, open Settings > Permalinks and click Save Changes. You do not have to change the selected structure. Saving refreshes WordPress’s rewrite state and is the documented first reset for permalink failures.
Rank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
This action cannot repair an incorrect Nginx document root, a missing try_files fallback, or a broken PHP-FPM socket. It is useful only after requests can reach WordPress.
Diagnose a blank PHP page instead of guessing
Enable WordPress logging
Turn on WordPress debugging in wp-config.php and write errors to the WordPress log. A common configuration is:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
With display disabled, visitors do not receive raw error details in the page response. Inspect wp-content/debug.log while reproducing the failure. Disable debugging or adjust it according to your operational policy after the incident; logs can contain sensitive paths and error data.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Read all three relevant log streams
- WordPress:
wp-content/debug.logidentifies application-level PHP errors, plugin and theme exceptions, and WordPress database messages. - Nginx: the error log shows configuration errors, permission failures, missing files, and FastCGI connection problems.
- PHP-FPM: the pool or service log can show worker crashes, fatal PHP errors, rejected connections, and resource-limit failures.
Reproduce the blank page immediately after starting a log tail, then match the timestamp across the logs. The first fatal error in the chain is usually more useful than later 502 or 500 messages that merely describe the consequence.
Interpret the evidence
| Evidence | Likely layer | Next action |
|---|---|---|
| Category URL is 404, while a direct PHP file responds | Nginx routing or WordPress rewrite state | Verify the active location / fallback, then resave permalinks. |
| PHP requests report a missing socket or connection failure | PHP-FPM route or service | Check the configured fastcgi_pass destination and the PHP-FPM service. |
SCRIPT_FILENAME points to a nonexistent file |
Document-root or FastCGI parameter mapping | Align the script filename with the actual WordPress root. |
| WordPress log contains a fatal error or database error | Application, extension, PHP compatibility, or database layer | Fix the named component, then retest the original URL. |
| No WordPress log entry, but Nginx records an upstream error | Request never completed PHP execution | Resolve the Nginx-to-PHP-FPM connection or script-path problem first. |
Isolate plugin, theme, PHP, and memory causes
Temporarily test extensions
If the logs identify a plugin or theme callback, disable that component and retry the category URL and the previously blank page. When the administration area is unavailable, deactivate the suspected extension using the site’s normal maintenance procedure or by temporarily changing its plugin directory name on the server. Restore the name after testing, then update or replace the component that caused the fatal error.
Best Value
Test the active theme
A theme can break category templates or execute incompatible PHP. Switch temporarily to a bundled, known-compatible theme and retest. If the blank page disappears, inspect the original theme’s category template, custom functions, and PHP compatibility before reactivating it.
Check PHP compatibility and memory
Use the PHP version supported by the installed WordPress core, theme, and plugins. A version mismatch commonly appears in debug.log or the PHP-FPM log as a fatal error. Also check the WordPress memory limit when the log indicates exhaustion. Increasing memory without fixing an infinite loop, oversized query, or incompatible extension only postpones the failure.
Verify WordPress files
If logs refer to missing or corrupted core files, compare the installation with a clean copy of the same WordPress release and restore only verified files. Preserve wp-content and the site configuration. Do not overwrite the entire installation before taking a backup and confirming the release you need to retain.
Common fixes that do not solve the underlying problem
- Resaving permalinks repeatedly: useful for refreshing WordPress rewrite state, but ineffective when Nginx never forwards the request.
- Creating category folders: unnecessary and potentially confusing; category archives are generated by WordPress.
- Copying a PHP-FPM socket path from another server: socket names and locations depend on the installed PHP-FPM service. Use the destination configured on this host.
- Showing PHP errors to every visitor: it may expose paths, SQL details, or credentials. Log errors while keeping display disabled on a public site.
- Changing several plugins, the theme, and PHP at once: it removes the evidence needed to identify the offending component. Change one variable, reproduce the error, and record the result.
Verify the repair
- Open a category archive in a private browser window and confirm it returns the expected archive rather than a 404.
- Open a normal post and page permalink to verify that the fix is not limited to one route.
- Load the WordPress login and administration pages, which exercise PHP execution separately from public archive routing.
- Submit a harmless request with a query string and confirm it reaches WordPress without losing the parameters.
- Review Nginx, PHP-FPM, and WordPress logs after testing; a successful page with new fatal or upstream errors is not a complete repair.
- Turn off temporary debugging settings or keep them configured to log without displaying errors, according to your maintenance policy.
A practical decision order
Use this order to avoid applying an application fix to a server-routing problem:
- Routing: confirm the active server block, document root,
index index.php, and thetry_filesfallback. - PHP handoff: verify the FastCGI include, PHP-FPM socket or upstream, and
SCRIPT_FILENAME. - WordPress rewrites: save the settings at Settings > Permalinks.
- Evidence: reproduce the failure with WordPress, Nginx, and PHP-FPM logs open.
- Isolation: address the specific plugin, theme, PHP compatibility, memory, database, or file problem named by the logs.
This sequence separates a 404 caused by request routing from a blank response caused by PHP execution. It also prevents a successful permalink refresh from creating false confidence when the server is still pointing at the wrong root or PHP-FPM endpoint.
Quick Recap
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.

