• Resolved Olga

    (@1529800-1)


    Hello.
    Hope you can help me to resolve the issue. I have intalled the latest WP and bulletproof on my site. Also i have a subdomain, WP is not installed there, but secure htaccess rules also works for it.
    What i need to change in htaccess file (i use starndart .secure file, no changes) do disable it working for subdomains?
    If i disable bulletproof for WP it also disabling for subdomain, so the problem is in htaccess…

    https://ww.wp.xz.cn/plugins/bulletproof-security/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AITpro

    (@aitpro)

    Yes. You are correct. The parent htaccess file in the hosting account root folder will apply its htaccess rules to all child folders by default since that is the natural hierarchical/recursive nature of htaccess files.

    This forum topic explains this in full detail: http://forum.ait-pro.com/forums/topic/htaccess-files-for-multiple-website-domains/

    Basically what you want to do is this (using subdomainA as an example subdomain folder name for this example):
    Using BPS Custom Code you want to copy the WP REWRITE LOOP START htaccess code from your root htaccess file into this BPS Root Custom Code text box: CUSTOM CODE WP REWRITE LOOP START.
    Edit the code and add the additional RewriteRule for sudomainA (you would use your actual subdomain folder name).
    Click the Save Root Custom Code button.
    Go to the BPS Security Modes page, click the Create secure.htaccess File AutoMagic button and activate Root folder BulletProof Mode.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # Do not apply rules to other child websites &
    # do not log errors for these child sites
    RewriteRule ^subdomainA/ - [L]
    Thread Starter Olga

    (@1529800-1)

    Works perfect! Thanks a lot!

    Thread Starter Olga

    (@1529800-1)

    Hello!
    This is strange, but i’m getting that error again… WP core is latest and the plugin too, no code was changed. Any idea?

    Plugin Author AITpro

    (@aitpro)

    When did you see the first error again? What has changed on your website around that time?

    You can try clicking the AutoMagic buttons and activating Root folder BulletProof again to see if that takes care it.

    Thread Starter Olga

    (@1529800-1)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Disable plugin for subdomain’ is closed to new replies.