Connect with us

Hi, what are you looking for?


How to fix Nginx WordPress Permalink 404 Error

How to fix Nginx WordPress Permalink 404 Error


Nginx make websites quicker. It positively has an higher edge in serving static content material. That’s why, many WordPress customers swap to Nginx.

Usually, this swap trigger Nginx WordPress permalinks 404 errors. This occurs as Apache’s rewrite guidelines don’t work with NGINX.

Subsequently, fixing WordPress web sites is likely one of the widespread process that we do as a part of our Server Administration Companies.

As we speak, we’ll see how Bobcares’ Engineers mounted Nginx WordPress permalinks 404 error for one among our buyer.

Particulars of WordPress permalinks 404 error

We’ll start with seeing the main points of the error reported by the client. The Assist-desk request stated:

In my area, solely the house web page is working, the place as each different web page returns a 404 not discovered error. I
assume that is both because of .htaccess file, permalink settings, or Nginx Configuration? Please repair!

The shopper had web site hosted on a Plesk server. He lately switched to Nginx from Apache. That’s when he began getting 404 or Web page not discovered errors.

What causes permalinks 404 error in Nginx?

WordPress include the choice to create everlasting hyperlinks to weblog posts on the web site.  And, the hyperlinks will be created primarily based on put up title, put up quantity, date, and so forth.

Now, its time to see what causes the Nginx wordpress permalinks 404 error.

Principally, buyer select PHP-FPM because the PHP handler, as it’s the handler that WordPress recommends. And, to reap the benefits of NGINX, we suggest prospects to allow PHP-FPM on all domains that serve PHP content material.

Sadly, mod_security guidelines is not going to work with NGINX, and .htaccess rewrite guidelines and restrictions will now not apply. Nginx and Apache rewrite guidelines have completely completely different format. The directives in Apache like Rewritecond, RewriteRule, and so forth. take its equivalents in Nginx configuration.

Which means WordPress permalink rewrites will now not work after switching the online server.

Steps for fixing Nginx wordpress permalinks 404 error

Fortunately, there are a number of strategies to repair the WordPress permalinks on Nginx. Let’s check out every of them.

1. Changing rewrite guidelines to Nginx format

A faster technique to repair the permalink error is to transform the Apache rewrite guidelines to Nginx format. Both we will manually rewrite the foundations or use numerous plugins for computerized conversion.

For instance, in servers with Plesk management panel, there comes an extension like “htaccess to nginx“. Through the use of this extension, it could rewrite the customized Apache directives in response to the foundations of nginx syntax. The plugin particulars are as proven under.

How to fix Nginx WordPress Permalink 404 Error

We simply had so as to add the foundations within the Further Nginx directives part contained in the area settings as proven under.

How to fix Nginx WordPress Permalink 404 Error

That mounted the permalinks and the web site began working once more.

2. Modifying Nginx configuration

Equally, modifying the Nginx configuration additionally helps in fixing the WordPress permalinks 404 error. Right here, throughout the per area Nginx configuration file for the area, our Help Engineers edit the next location block throughout the server block:

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

Additional, we reload the Nginx configuration for the modifications to take impact.

3. Tweaking Proxy mode

Equally in Plesk servers having Apache with Nginx as reverse proxy, tweaking area’s setting additionally clear up the permalink errors. The .htaccess is ignored if Apache is turned off for the area. And, it leads to Permalink 404 errors.

Subsequently, in some circumstances, to unravel the error, we flip ON the choice Proxy mode from Plesk > Domains > > Apache & nginx Settings.

[Finding Nginx WordPress permalinks 404 error trouble? We can fix your website.]


To be exact, Nginx wordpress permalinks 404 error happens when the rewrite guidelines don’t comply with the Nginx format. The repair includes changing the foundations, modifying Nginx configuration and lots of extra. As we speak, we noticed how our Help Engineers solved the error for our buyer and made permalinks working once more.

wordpress 404 error after changing permalinks,wordpress nginx 404 not found subpages,404 – file or directory not found wordpress,nginx wordpress subdirectory permalinks,wordpress permalink nginx,wordpress permalink post name 404,wordpress permalinks not working,404 not found nginx wordpress

You May Also Like


The latest round of MITRE ATT&CK evaluations proved yet again that Microsoft customers can trust they are fully protected even in the face of...


On Thursday, April 23rd, 2020, Canonical Ltd, the makers of Ubuntu Linux distribution officially released the long-awaited Ubuntu 20.04 version code-named “Focal Fossa”, it...


As the robot process automation (RPA) market becomes more and more dynamic, more and more companies are trying to integrate RPA into their business...


Virtual Machine Manager is one of the best hypervisors available for the Linux desktop. This is well-designed and well-functioning QEMU/KVM virtualization software that takes...