New BPS Pro install deletes existing root .htaccess file

Home Forums BulletProof Security Pro New BPS Pro install deletes existing root .htaccess file

Viewing 16 post (of 16 total)
  • Author
    Posts
  • #39780
    AITpro Admin
    Keymaster

    Edit|Update: This workaround solution did work to force the Apache Modules checking/testing htaccess file to return the desired option value setting for this BPS option: bps_apache_mod_ifmodule = Yes. A permanent solution will be created in BPS Pro 15.1 for this particular server issue.

    Now that I understand the problem.  Try this workaround solution below to get things working for now until I can add the new Setup Wizard Option setting in the next BPS Pro version release.

    Edit this Apache Modules testing .htaccess file here > /bulletproof-security/admin/mod-test/.htaccess.  Copy the modified .htaccess code below into the /bulletproof-security/admin/mod-test/.htaccess file and overwrite ALL the .htaccess code in that file. Then run the BPS Pro Pre-Installation Wizard and Setup Wizard again. Let me know what happens.

    # Module Directive Testing
    
    # 1 mod_access_compat Order Directive Allow from all
    #<FilesMatch "^(mod_access_compat-od-allowed\.png)$">
    # <IfModule mod_access_compat.c>
    # Order Allow,Deny
    # Allow from all
    # </IfModule>
    #</FilesMatch>
    
    # 2 mod_access_compat Order Directive Deny from all
    #<FilesMatch "^(mod_access_compat-od-denied\.png)$">
    # <IfModule mod_access_compat.c>
    # Order Allow,Deny
    # Deny from all
    # </IfModule>
    #</FilesMatch>
    
    # 2 Modified to force a Yes option value for option bps_apache_mod_ifmodule
    <FilesMatch "^(mod_access_compat-od-denied\.png)$">
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </FilesMatch>
    
    # 3 mod_authz_core Require all denied Conditional
    <FilesMatch "^(mod_authz_core-denied\.png)$">
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </FilesMatch>
    
    # 4 mod_authz_core|mod_access_compat Order Directive Denied Conditional
    #<FilesMatch "^(mod_authz_core-od-cond-denied\.png)$">
    # <IfModule mod_authz_core.c>
    # Order Allow,Deny
    # Deny from all
    # </IfModule>
    #</FilesMatch>
    
    # 5 mod_authz_host Require ip 127.9.9.1 Conditional
    <FilesMatch "^(mod_authz_host-require-ip\.png)$">
    <IfModule mod_authz_host.c>
    Require ip 127.9.9.1
    </IfModule>
    </FilesMatch>
    
    # 6 mod_authz_host|mod_access_compat Order Directive Denied Conditional
    <FilesMatch "^(mod_authz_host-od-cond-denied\.png)$">
    <IfModule mod_authz_host.c>
    # Order Allow,Deny
    # Deny from all
    </IfModule>
    </FilesMatch>
    
    # 7 mod_access_compat: No IfModule Condition Order Directive Allow from all
    #<FilesMatch "^(mod_access_compat-od-nc-allowed\.png)$">
    #Order Allow,Deny
    #Allow from all
    #</FilesMatch>
    
    # 8 mod_access_compat: No IfModule Condition Order Directive Deny from all
    #<FilesMatch "^(mod_access_compat-od-nc-denied\.png)$">
    #Order Allow,Deny
    #Deny from all
    #</FilesMatch>
    
    # 8 Modified to force a Yes option value for option bps_apache_mod_ifmodule
    <FilesMatch "^(mod_access_compat-od-nc-denied\.png)$">
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </FilesMatch>
    
    # 9 mod_rewrite: No IfModule Condition
    RewriteCond %{HTTPS} !=on
    RewriteCond %{REQUEST_URI} ^.*/mod-test/mod_rewrite-cond\.png$ [NC]
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/wp-content/plugins/bulletproof-security/admin/mod-test/mod_rewrite-nc.png [R=302]
    RewriteCond %{HTTPS} =on
    RewriteCond %{REQUEST_URI} ^.*/mod-test/mod_rewrite-cond\.png$ [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/wp-content/plugins/bulletproof-security/admin/mod-test/mod_rewrite-nc.png [R=302]
    
    # 10 mod_authz_core: No IfModule Condition Require all denied
    <FilesMatch "^(mod_authz_core-nc-denied\.png)$">
    Require all denied
    </FilesMatch>
    
    # 11 mod_authz_host: No IfModule Condition Require host
    <FilesMatch "^(mod_authz_host-nc-require-host\.png)$">
    Require host example.com
    </FilesMatch>
    
    # 12 mod_security: IfModule Conditions
    <FilesMatch "^(mod_security\.png)$">
    <IfModule mod_security.c>
    # <IfModule mod_access_compat.c>
    # Order Allow,Deny
    # Deny from all
    # </IfModule>
    
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </IfModule>
    </FilesMatch>
    
    # 13 mod_security2: IfModule Conditions
    <FilesMatch "^(mod_security-2\.png)$">
    <IfModule mod_security2.c>
    # <IfModule mod_access_compat.c>
    # Order Allow,Deny
    # Deny from all
    # </IfModule>
    
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    </IfModule>
    </FilesMatch>
Viewing 16 post (of 16 total)
  • You must be logged in to reply to this topic.