• Resolved milob3

    (@milob3)


    I used my host server clone option to create a copy of my site to a dev website. The dev site threw a 500 error. The issue was a section that AOIS created in the htaccess file. When that section was removed from the dev site, it was accessible. How can I keep this section from being added to my htaccess file. Here’s the part that I can paste. It is wrapped inside IfModule Litespeed.

    Begin AIOWPSEC Firewall

    php_value auto_prepend_file ‘/home/oregon/dev.meditationinoregon.org/aios-bootstrap.php’
    php_value auto_prepend_file ‘/home/oregon/dev.meditationinoregon.org/aios-bootstrap.php’

    End AIOWPSEC Firewall

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @milob3

    Can you make sure that aios-bootstrap.php file is there.

    Do the copied site have same configuration as old ? For example here the copied site have lightspeed server and old have apache server like that ?

    In that context you should try deactivate and activate the plugin once and apply firewall rule again. In lightspeed server user.ini file gets written not .htaccess.

    Regards

    Thread Starter milob3

    (@milob3)

    I’m sorry to take so long to respond. The aios-bootstrap.php file is there. I pasted the file contents below. Both sites are running on the same host server and are configured the same.

    <?php
    /**

    • @version 1.0.1
    • WARNING: Please do not delete this file.
      • This will cause PHP to throw a fatal error and render your site unusable.
      • To safely delete this file, please check both your .user.ini file and your php.ini file and ensure this file is not set in the auto_prepend_file directive.
      • Please ask your web hosting provider if you need guidance with executing the aforementioned steps.
        */
        $GLOBALS[‘aiowps_firewall_rules_path’] = DIR.’/wp-content/uploads/aios/firewall-rules/’;

    // Begin AIOWPSEC Firewall
    if (file_exists(DIR.’/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/firewall/wp-security-firewall.php’)) {
    include_once(DIR.’/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/firewall/wp-security-firewall.php’);
    }
    // End AIOWPSEC Firewall

    Thread Starter milob3

    (@milob3)

    I still have the same issue. If I remove the AIOWSPSEC Firewall code from the Staging .httacess file after cloning completes, Staging works. If I do not remove it. Staging is not accessible. Also files exported with All In One WP Migration files will not import if the AIOS plugin was active when I exported the file. If I deactivate AIOS, both hosting provider cloning and All In One WP Migration work

    Begin AIOWPSEC Firewall

    php_value auto_prepend_file ‘/home/oregon/staging.meditationinoregon.org/aios-bootstrap.php’
    php_value auto_prepend_file ‘/home/oregon/staging.meditationinoregon.org/aios-bootstrap.php’

    End AIOWPSEC Firewall

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AIOWPSEC Firewall in htaccess’ is closed to new replies.