title: Upgraded NginX from 1.18.0 to 1.23.0 on Ubuntu 20.04 LTS - Wordpress page URLs all non-functional post-upgrade
body: <p>Once I finished doing the above the associated wordpress site's permalinks stopped working.</p>
  <p>The wordpress site itself and all .php and .html files render fine, it is only that any sub-page (except for the home page) is now invalid and clicking any wordpress page link generates 404 errors on the Wordpress site.</p>
  <p>Curiously, the wordpress &quot;/admin&quot; page still works 100% correctly under both NginX 1.18.0 and NginX 1.23.0 - with the admin back-end ALSO using what looks like permalinks...</p>
  <p>This is my /etc/nginx/conf.d/default.conf for the new instance, I used the same file as was working on my 1.18.0 install on my 1.23.0 Ubuntu 20.04 based install:</p>
  <pre><code>server {
      listen       80;
  
      root /var/www/wordpress;
  
      server_name www.myserver.com
  
      client_max_body_size 100M;
      autoindex off;
  
      location / {
          root   /var/www/wordpress;
          index  index.php index.html index.htm;
          try_files $uri $uri/ /index.php?$args =404;
      }
  
      error_page   500 502 503 504  /50x.html;
      location = /50x.html {
          root   /usr/share/nginx/html;
      }
  
      location ~ \.php$ {
          include snippets/fastcgi-php.conf;
          fastcgi_pass   unix:/run/php/php8.1-fpm.sock;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;
      }
  
      location ~ /\.ht {
          deny  all;
      }
  
      location ~ /\. {
          deny  all;
      }
  }
  </code></pre>
  <p>Several suggested fixes have already been incorporated for fixing permalinks in Wordpress under Nginx, e. g. these are Google-ed suggestions:</p>
  <pre><code>try_files $uri $uri/ /index.php?$args =404;
  </code></pre>
  <p>iso just</p>
  <pre><code>try_files $uri $uri/ =404;
  </code></pre>
  <p>and adding</p>
  <pre><code>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  </code></pre>
  <p>to the <strong>location ~ .php$</strong> block.</p>
  <p>Nothing works. Any sub-page URL I try to access on the site gives a 404.</p>
  <p>Sub-page URLs are typical wordpress URLs, e.g.</p>
  <pre><code>www.myserver.com/home/top-content
  www.myserver.com/home/get-in-thouch
  
  </code></pre>
  <p>etc. - these are all now broken and result in 404s if clicked when this wordpress site is deployed under NginX 1.23.0 in Ubuntu 20.04.</p>
  <p>The above worked correctly with NginX 1.18.0 and Wordpress 6.0.1, NginX 1.23.0 cannot / does not provide Wordpress permalink functionality with the above <strong>/etc/nginx/conf.d/default.conf</strong> config.</p>
  <p>What am I missing to get WordPress permalink functionality back under NginX 1.23.0 - clearly there is some differences in how that is configured in NginX 1.23.0 vs. NginX 1.18.0?</p>
  <p>Thanks!</p>