WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] .htaccess copy to other sites (6 posts)

  1. myallenmedia
    Member
    Posted 1 year ago #

    Is it possible to take the customized .htaccess files that BPS creates for root and /wp-admin/ and use that for the other wp sites we have on the server?

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, you could do that, but ideally you would want to install BPS on each WordPress site so that you have all the tools and features in BPS. If you have a Network/Multisite installation of WordPress then BPS is only activated on the Primary site (not Network Activated) and not all the subsites.

    If you have standard single site installations of WordPress then the only thing you would need to manually modify would be your RewriteBase and RewriteRules to match the sites base folder. This is one of the things that AutoMagic does automatically when you click the AutoMagic buttons.

    but if you wanted to do this manually here is an example:

    if you have a WordPress site installed in /FolderA you would need to edit the Root .htacces file for that site.

    your RewriteBase would be RewriteBase /FolderA/ and your RewriteRules would be RewriteRule . /FolderA/index.php [L]

    The wp-admin .htaccess file will work on any/all sites without having to make any modifications.

  3. myallenmedia
    Member
    Posted 1 year ago #

    but since each wordpress install is in it's own folder which is a subfolder off the root then .htaccess should copy there with no issues.

  4. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Is the website that you have BPS installed on its own folder? If so, take a look at the RewriteBase in the root .htaccess file. Is the RewriteBase this: RewriteBase / with just a forward slash and not the folder name that this site is installed in? If the folder name for this website is in the RewriteBase for example lets say this site is installed in a folder called - /MyWordPressSite1 its RewriteBase is RewriteBase /MyWordPressSite1/ then if you have another site installed in folder /MyWordPressSite2 then that site's RewriteBase is going to be RewriteBase /MyWordPressSite2/. So you need to see what is in your current root .htaccess file so that you can then make the edits for each website if necessary. Or of course you can install BPS on each site, click the AutoMagic buttons and activate BulletProof Modes.

  5. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Can this Thread be resolved? If so, please mark it as resolved. Thank you.

  6. myallenmedia
    Member
    Posted 1 year ago #

    resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags