Support » Plugin: Wordfence Security - Firewall & Malware Scan » Google Searchconsole is reporting 404 for loghuman

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello Ralf,
    we had a bug like this before but it was fixed. Just to make sure, are you using the most recent version of WordPress and Wordfence?

    Thread Starter Ralf Römling


    Yes I read it somewhere, but it was for the wp-admin, I think. What I find interesting is, that I’ve never seen it since the site started in Oct 2015 only recently. May this be some kind of hacking attack?

    WP is 4.4.2, WF is 6.0.25

    Hello again Ralf,
    I don’t think it’s a hacking attack. It should stop happening if you disable Live Traffic view. But it would be nice if we could get to the bottom of it since this is the first report we have after the bug was fixed.

    I’m curious what “index” is and why there is no slash after “index” in that string. Is that a typo or is there no slash in the URL? I would expect it to look like this

    Do you have any plugins that do URL rewriting?

    Thread Starter Ralf Römling


    Hm, no plugin, but I had a htaccess rediret for all html-urls to non-html.

    Problem is that this is working for urls with slugs but not for the homepage itself which was redirecting to http://www.sld.tld/index . Maybe that caused the prob with WF?

    I used this statement
    RedirectMatch 301 (.*)\.html$ /$1

    IMO this should work. Do you notice an error here?

    Hello again,
    yeah I’m pretty confident it relates to that. The redirect seems to conflict with the WordPress rewrite rules. Here is a post on Stack Overflow that explains it.

    You should probably do the fix suggested there but I’ll relate this to our dev team either way and let them decide if it needs a fix. Thanks for reporting it!

    Thread Starter Ralf Römling


    Thanks for that link which I already had found actually 🙂

    Didn’t work for me first time though, but after I reread the post now, I tried to implement the Rewrite as the first entry and that did the trick. Thx for pushing me in the right direction!

    For everybody else, the beginning of your htacces should look like this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule (.+)\.html?$$1/ [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Nice job Ralf! And thanks for sharing!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Searchconsole is reporting 404 for loghuman’ is closed to new replies.