title: Nginx with wordpress 404 on all pages
body: <p>Although this issue has been answered many times but still its not working for me.
  I am getting 404 on all pages except home page on Nginx.</p>
  
  <p>I am posting in my configuration below:</p>
  
  <pre><code>server {
          listen 80 ;
          listen [::]:80;
  
          root /var/www/html/p/swear;
          index index.php index.html index.htm;
  
          server_name skinnybikiniswimwear.org;
  
          location / {
                  try_files $uri /$uri/ /index.php?args =404;
          }
  
  
              location ~ \.php$ {
                  fastcgi_split_path_info ^(.+\.php)(/.+)$;
                  try_files $uri /index.php?args =404;
                  fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
                  fastcgi_index index.php;
                  include fastcgi_params;
          }
  }
  </code></pre>
  
  <p>I am not able to find the issue in this configuration.</p>
  
  <p>Wordpress is installed at: /var/www/html/p/swear</p>
  
  <p>Thanks</p>