Why NGINX gives 404 instead of the template 404.php and how to fix it?

0 like 0 dislike
4 views
On the website in the theme there is a file 404.php but in any non-existent url with nginx gives my 404, but not loads 404.php

.htaccess:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
An ErrorDocument 404 /index.php?error=404

Anyone tell me what could be wrong?
by | 4 views

1 Answer

0 like 0 dislike
The fact that Nginx does not work with htaccess.
by

Related questions

0 like 0 dislike
1 answer
asked Apr 9, 2019 by Quad_Tree
0 like 0 dislike
4 answers
asked Mar 21, 2019 by ArtemPugachev
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Aug 4, 2019 by LegeArtis
110,608 questions
257,186 answers
0 comments
28,697 users