J
J
juvu2017-04-07 14:35:28
Apache HTTP Server
juvu, 2017-04-07 14:35:28

wordpress. Why is the 404 status buggy when the CNC is on?

The problem is this: If you enable CNC in WordPress and add recommended rules to .htaccess, then Google crawler stops understanding 404 errors, and sees 404 pages with status 200, if you remove all rules from .htaccess, then everything is OK, 404 works fine. What are the options for solving the problem?
.htaccess file content:

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

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasya Petrov, 2017-04-07
@VasyaPertrov

There is no such problem in WP. This behavior can be changed by the theme or plugins. Deal with them.

M
Maxim Timofeev, 2017-04-07
@webinar

Do you go to mysite.com/404.html and see an error page?
That's the way it should be. This is the html file, and it is. And why fix it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question