For the NGINX web server what should the config file look like for WordPress.

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer