Copying environment disables firewall and creates path errors
-
For my website I also have a development and staging environment. I make frequent copies between these environments, and when I copy them it also copies the wordfence-waf.php file, which contains the path for the wflogs folder. This causes the Firewall to go down on the environments I’ve copied to as the path is directed to the site I copied from. To fix this I have to manually go into the file and correct the path.
I’ve seen other mentions of fixing path issues by updating the auto_prepend_file variable in the .htaccess file, but because my site is hosted on WPEngine, the use of the file was deprecated as of PHP 7.4.
Is there a way to avoid manually updating that file every time I copy to an environment?
- The topic ‘Copying environment disables firewall and creates path errors’ is closed to new replies.