A
A
Alexey Kuznetsov2021-03-26 17:35:56
open server
Alexey Kuznetsov, 2021-03-26 17:35:56

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

1 answer(s)
V
vladryjoff, 2021-03-26
@alexey2505085

.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 question

Ask a Question

731 491 924 answers to any question