• Resolved jporozynski

    (@jporozynski)


    Every week or so I get this message in .htaccess and I have to restore it:

    #Reset by Duplicator Installer. Original can be found in .htaccess.xxxxxxxxxxxx.orig

    I think it has something to do with “optimize the Wordfence Web Application Firewall” which I’ve done and I’ve gone through the help document and everything seems to check out ok.

    Using LiquidWeb for hosting.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @jporozynski,

    This seems to be caused by the Duplicator – WordPress Migration plugin.

    Can you comment out these three lines which are found with installer.php? (Doing a search for @copy('.htaccess', should jump you to the correct line):

    //@copy('.htaccess', ".htaccess.{$timeStamp}.orig");
    //@unlink('.htaccess');
    //@file_put_contents('.htaccess', "#Reset by Duplicator Installer.  Original can be found in .htaccess.{$timeStamp}.orig");

    Dave

    I had this too, even though the Duplicator plugin had long since been deleted. Here are the files you need to delete after the site has been migrated using Duplicator, including installer.php:

    https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-295-q

    Take a backup first!

    • This reply was modified 5 years, 9 months ago by pixelshrink.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess keeps getting reset’ is closed to new replies.