WordPress encounters a 404 error under Nginx

 The blogger encountered this problem during the integration of WordPress and Reverse Proxy.

The default URL of each page of WordPress is ?p=123 and so on. If the home page of the website is blank, it may be that the try_files of Nginx on the PHP server is not set.

Open the Nginx configuration file that Wordpress belongs to and check the location section:

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

Refresh after configuration

sudo systemctl reload nginx

Get it done.

Comments

Popular posts from this blog

Getting started with Gradle-Grovvy language foundation

Gradle configuration Spring multi-project test

WordPress easy to generate static website plug-in