• Resolved zzzmuzz

    (@zzzmuzz)


    The wordfence “backup” of htaccess removed all of the contents from that file.

    My .htaccess read:

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

    # END WordPress

    I only discovered that htaccess was empty when I found that I could only access my site home page and nothing else from the menu.

    1. Is this a wordfence bug (to remove the contents, not just do a backup?)
    2. If I restore the htaccess as it was (which I have done), is this still ok for wordfence?

    Thanks,

    https://wordpress.org/plugins/wordfence/

Viewing 5 replies - 1 through 5 (of 5 total)
  • HI

    Sorry you had an issue with the plugin. Can you verify the version of the plugin and whether this happened after enabling caching or not? If so, which version did you enable?

    Thanks!

    tim

    Thread Starter zzzmuzz

    (@zzzmuzz)

    The version I had was 5.2.3. There was no other caching plugins activated.

    I see today there is a new version so will upload that after this.

    I have restored htaccess as it was, which now allows access to all other pages of the website, not just the home page. and everything seems to be working ok. But not sure if

    Everything now seems to working ok as far as I can tell.

    I think you are safe. I’ve only had this one time, when I was enabling caching and I think it was something I did, not Wordfence. I believe you are ok with what you have now. When I get a second, I’ll compare your htaccess to one of mine and let you know what the differences are.

    tim

    Plugin Author Mark Maunder

    (@mmaunder)

    Hi,

    Just wanted to confirm that when you enable Falcon we ask you to back up your .htaccess – you probably are aware of this already – so just in case something happens you can restore it.

    We don’t ever blank an .htaccess file, we only modify it. Quite a long time ago we had an issue that would corrupt the htaccess, not blank it. But that was fixed – it was due to a quirk in PHP and only happened very rarely. But not a factor now.

    Regards,

    Mark.

    Thread Starter zzzmuzz

    (@zzzmuzz)

    Yes backing up of htaccess was what this post was all about. I did the backup, the later found I could not access any of the site pages (apart from the home page.) When I went into Cpanel Filemanager and checked .htaccess I discovered it was empty!

    I then used the backup to restore htaccess to how it was before the backup.

    As far as I know there was nothing else going on that could have impacted on htaccess. I have never seen this happen before.

    Thanks for the follow up.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Deleted htaccess’ is closed to new replies.