Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nintechnet

    (@nintechnet)

    You would need to exclude the /e-commerce/ folder, if you are running NinjaFirewall WP in the parent directory.
    You can try either solutions:
    1. Create a .user.ini inside the /e-commerce/ folder and add this line:
    auto_prepend_file =
    The value is empty, and should clear the directive defined in the parent directory
    2. Or, if that didn’t work, use the .htninja script and upload it in the root folder of WordPress:

    <?php
    /*
     +===========================================================================================+
     | NinjaFirewall optional configuration file                                                 |
     |                                                                                           |
     | See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
     +===========================================================================================+
    */
    
    if (strpos($_SERVER['SCRIPT_FILENAME'], '/e-commerce/') !== FALSE) {
       return 'ALLOW';
    }
    
    • This reply was modified 3 years, 7 months ago by nintechnet.
    Thread Starter johnmandarine

    (@johnmandarine)

    Hello,

    The first solution works !

    Thanks for your help

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Firewall issue’ is closed to new replies.