title: nginx 404 not found on url click
body: <p>I am using nginx and wordpress.
  here is my nginx config :</p>
  <pre><code>server {
          listen *:443 ssl;
  
          root /var/www/wordpress;
          ## This should be in your http block and if it is, it's not needed here.
          index index.php;
   
          location = /favicon.ico {
                  log_not_found off;
                  access_log off;
          }
   
          location = /robots.txt {
                  allow all;
                  log_not_found off;
                  access_log off;
          }
   
          location / {
              try_files $uri $uri/ /404;
          }
  
   
          location ~ \.php$ {
                  #NOTE: You should have &quot;cgi.fix_pathinfo = 0;&quot; in php.ini
                  include fastcgi.conf;
                  fastcgi_intercept_errors on;
                  fastcgi_pass php;
          }
   
          location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                  expires max;
                  log_not_found off;
          }
  }
      
  </code></pre>
  <p>the website works fine but when I click a link that redirects to another page, nginx gives a 404 not found page.</p>
  <p>what should I add in the config file so nginx allows all urls?</p>