<div dir="ltr">Hi All <div><br></div><div>I have simple drupal site running and i wanted to redirect 404 pages to a error page , So i have following configuration in place </div><div><br></div><div>error_page 404 <a href="https://example.com/page-not-found">https://example.com/page-not-found</a>;  <br></div><div><br></div><div>when it try to access non existing page such as  <a href="https://example.com/abc">https://example.com/abc</a> , then from nginx page correctly get redirect to the <b><a href="https://example.com/page-not-found">https://example.com/page-not-found</a></b></div><div><b><br></b></div><div>But when i try to access non non-existing page ( with extension ) such as  <a href="https://example.com/">https://example.com/</a><b>abc.js </b> it does not get redirected to the  <b><a href="https://example.com/page-not-found">https://example.com/page-not-found</a> </b>page .</div><div><br></div><div>So is there any way to fix this issue? , please advice </div><div><br></div><div>Thank You</div><div><br></div><div><br></div></div>