title: Default redirect in the subfolder's root is not redirected to index.php
body: <p>In the root directory, any redirect to <code>localhost/</code> is simply redirected to index.php, but if you go inside the <code>localhost/phone</code> subdirectory, there's an index.php page too, and as you type <code>localhost/phone/</code> you are not redirected to the index.php page. No idea why. This is my server configuration.</p>
  
  <pre><code>server {
          listen       80;
          listen       [::]:80 default_server;
          server_name  localhost;
          charset UTF-8;
          index index.html index.php;
          location / {
              root   xyz;
              proxy_set_header Connection "";
              if ($request_uri ~ ^/(.*)\.html$) {  return 302 /$1;  }
              try_files $uri $uri/ $uri.html $uri.php?$args;
              rewrite ^/(.*)/$ /$1 permanent;
              location ~*  \.(jpg|jpeg|png|gif|ico|css|js|ttf|webp)$ {
                  expires 365d;
              }
         }
  </code></pre>
  
  <p>I tried to point the directory and added defaults for index.php and it works, but now all the url's inside <code>/phone/</code> are showing blank.</p>
  
  <pre><code>location /phone {
     index index.html index.php;
  }
  </code></pre>
  
  <p>By "showing blank" means that they show a 404 error according to the error log</p>
  
  <blockquote>
    <p>2019/05/08 23:40:58 [error] 26240#14076: *1 CreateFile()
    "C:\xyz\nginx/xyz/phone/index" failed (2: The system cannot find
    the file specified), client: ::1, server: localhost, request: "GET
    /phone/index HTTP/1.1", host: "localhost"</p>
  </blockquote>
  
  <p>Now the index.php shows a 404 error, what am I doing wrong? Even though the file  is there</p>