I am messing around with the WordPress Permalinks under settings and the site works when the “plain” option is set but not for the other options. When it is changed the individual pages, except for the main ones, return 404 errors.
Here is the main excerpt from the Nginx file:
`location ~ \.php$ {`
`try_files $uri =404;`
`fastcgi_split_path_info ^(.+\.php)(/.+)$;`
`fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;`
`fastcgi_index index.php;`
`fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;`
`#fastcgi_param PATH_INFO $fastcgi_path_info;`
`include fastcgi_params;`
`}`
Any thoughts?
[ad_2]
https://www.cyberciti.biz/faq/how-to-configure-nginx-for-wordpress-permalinks/