How to set up Wordfence for the root website and subfolder websites
-
What is the best way to set up Wordfence for the root website and subdirectory websites? I’ve found different answers by googling, but I’m not sure which one is the best way or most suitable right now (October 2020). Here are the answers I’ve found so far:
– Set up the Firewall protection with subdirectory sites first, then working your way up through the file structure.
– Both the root and subdirectory sites would need the plugin installed, and there are not issues with running the plugin in two “nested” sites. You’ll just want to double-check that it’s not set to scan folders outside of WP (Make sure you don’t have “Scan files outside your WordPress installation” option enabled at (Wordfence > Options => Scans to include)).
– Make use of “Exclude files from scan that match these wildcard patterns.” option.
– The only difference would be in the firewall portion. When you try to optimize it at the subdirectory site, you’ll see a warning about there already being an auto_prepend_file that’s being used (for the installation in the root of the site). You should choose to override it. That should take care of things.
– Log in your root website, go to (Wordfence > Firewall > All Firewall Options) and under “Protection Level” section, click on “Remove Extended Protection”. Then log in your subdirectory site and optimize the firewall there. Return back to your root website and optimize the firewall there.
- The topic ‘How to set up Wordfence for the root website and subfolder websites’ is closed to new replies.