Nginx 404 redirection to error page
parakrama1282 at gmail.com
Fri Apr 8 12:14:08 UTC 2022
I have simple drupal site running and i wanted to redirect 404 pages to a
error page , So i have following configuration in place
error_page 404 https://example.com/page-not-found;
when it try to access non existing page such as https://example.com/abc
, then from nginx page correctly get redirect to the
But when i try to access non non-existing page ( with extension ) such as
https://example.com/*abc.js * it does not get redirected to the
<https://example.com/page-not-found> *page .
So is there any way to fix this issue? , please advice
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx