Wordfence generated empty pages with status 200
-
Hi
In Google console, I have lots of soft 404 errors due to Wordfence created empty pages which give HTTP status 200 instead of 404 or better 410
EXAMPLE: https://domain.com/?wordfence_lh=1&hid=A3AA5023EBC1FA6AA96CB45BA558FBBE
the numbers are different in each url.
If I deactivate wordfence these pages automatically redirect to the home page, so they give a status 301 and they will vanish in some time.I have two choices:
One is to redirect them to the home page with this code in .htaccess
RewriteEngine On RewriteCond %{QUERY_STRING} . RewriteRule ^ %{REQUEST_URI}?wordfence_lh=1&hid= [R=301,L]
And the other option is to say to G that they are gone with this:
RewriteEngine On RewriteCond %{QUERY_STRING} . RewriteRule ^ %{?wordfence_lh=1&hid=}? [R=410,L]
Both work, but…
After any of these two, LOGIN and LOGOUT are not working, because the login/logout uris contain the same strings that I use for redirecting or give status 410, so we have a redirecting loop here.
Sort answer: What to do?
If I leave it like this these pages will never go as they give status 200
- The topic ‘Wordfence generated empty pages with status 200’ is closed to new replies.