• Resolved Beee

    (@beee)


    I have a somewhat different setup than the default setup.

    I run a bare wordpress install in /wp.
    All my content (plugins/themes/etc) reside in /content.

    wordfence-waf.php exists in /wp.

    I would like to move this file to /content because every time my grunt build/clean command runs, it clears the entire WP folder and thus also this file.

    Can I do this (while simultaneously changing the location in htaccess) without any other issues/dependencies ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Beee

    (@beee)

    I tested it on my local environment and it seems to work, but wanna make sure I’m not overlooking anything.

    Plugin Author WFMattR

    (@wfmattr)

    Hi,

    Yes, as long as the auto_prepend_file line (in .htaccess in your case) points to the new path, that should work fine. You might just check that the paths referenced in the wordfence-waf.php file also point to the correct locations, since it is an unusual setup. The file contains the location of the Wordfence files and also the firewall config files that are normally normally /wp-content/wflogs/.

    -Matt R

    Thread Starter Beee

    (@beee)

    Thanks…. Will check into the logs as well…

    Thread Starter Beee

    (@beee)

    just a hint (if you move it), don’t place it in your (wp-)content folder because then it’s seen as a drop-in plugin…

    Thread Starter Beee

    (@beee)

    I think I am wrong with the previous statement.
    Anyway it works ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Move wordfence-waf.php’ is closed to new replies.