title: Rewrite with multiple back reference with .html file to domain name
body: <p><strong>About:</strong></p>
  <p>I'm trying to rewrite my domain using <code>Nginx</code>:
  I have a website on which I'm trying to rewrite the URL to <code>www.my.domain.com</code> to make it secure as it's showing the whole directory structure</p>
  <p><strong>Right now when I write in the browser</strong></p>
  <pre><code>www.my.domain.com
  </code></pre>
  <p><strong>It redirects me to this path below</strong></p>
  <pre><code>www.my.domain.com/dreamfactory/dist/index.html#/login
  </code></pre>
  <p>I want to hide the directory structure from URL to keep it safe, on search <code>www.my.domain.com</code></p>
  <p><strong>Results should be:</strong></p>
  <pre><code>www.my.domain.com/
  </code></pre>
  <p><strong>Implemented Rewrites:</strong></p>
  <pre><code> location / {
     try_files $uri $uri/ /index.php?$is_args$args;
   }
  </code></pre>
  <pre><code>location / {
      try_files $uri @rewrite;
    }
    location @rewrite {
      rewrite ^(.*[^/])$ $1/ permanent;
      rewrite ^(.*)/$ $1.html break;
    }
  </code></pre>
  <p>Any Hope </p>