I use driectadmin for vps and add a wordpress site, but homepage work, another url not work, it return 404 Not Found nginx.

This is my config file in /usr/local/directadmin/data/users/{package name}/nginx_php.conf

location ~ .php$
   $uri $uri/ /index.php?q=$uri&$args;
   fastcgi_split_path_info ^(.+.php)(/.+)$;
   include /etc/nginx/fastcgi_params;
   fastcgi_index index.php;
   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   include /etc/nginx/nginx_limits.conf;
   if (-f $request_filename)
     fastcgi_pass unix:/usr/local/php56/sockets/cbcs32.sock;

Read more here: WordPress and nginx uses Directadmin url not found


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: