Answer the question
In order to leave comments, you need to log in
Problem with WordPress 404 page?
The problem is this. When downloading other themes and changing example.ru to example.ru/2 , it gives a standard 404 nginx error instead of 404.php set in the theme.
ErrorDocument 404 /404.php
// this is the code in .htaccess
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
// this is the code in .htaccess
Answer the question
In order to leave comments, you need to log in
.htaccess only works with apache . Read more about setting up here - https://wordpress.org/support/article/nginx/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question