Adaptive Images for WordPress – htaccess code setup in BPS Custom Code

Home Forums BulletProof Security Pro Adaptive Images for WordPress – htaccess code setup in BPS Custom Code

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35773
    AITpro Admin
    Keymaster

    The Adaptive Images for WordPress plugin creates/writes htaccess code to the top of your root htaccess file when you save/resave the Adaptive Images for WordPress plugin settings.  The root htaccess file needs to be unlocked in order to allow the Adaptive Images for WordPress plugin to write/create it’s htaccess code in the root htaccess file.  The Adaptive Images for WordPress plugin’s htaccess code needs to be saved in BPS Root Custom Code so that it is saved permanently.  The setup steps below only need to be done once on first time installation/setup of the Adaptive Images for WordPress plugin.

    1. Go to the BPS Pro AutoRestore page > turn AutoRestore Off.
    2. Unlock your root htaccess file if it is locked. B-Core > htaccess File Editor tab page > click the Unlock htaccess File button. Note: Leave AutoLock turned On.
    3. Go to the Adaptive Images for WordPress settings page and save/resave the plugin settings. This writes htaccess code to the top of the root htaccess file.
    4. Go to B-Core > htaccess File Editor tab page > click the Your Current Root htaccess File tab > copy the Adaptive Images for WordPress htaccess code (example code shown below) at the top of your root htaccess file.

    # BEGIN Adaptive Images
    #=======================
    
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    
    # Watched directories
    RewriteCond %{REQUEST_URI} /private/wp-content/uploads [OR]
    RewriteCond %{REQUEST_URI} /private/wp-content/themes
    
    # Redirect images through the adaptive images script
    RewriteRule \.(?:jpe?g|gif|png)$ /private/wp-content/plugins/adaptive-images/adaptive-images-script.php [L]
    
    </IfModule>
    
    # END Adaptive Images

    5. Go to B-Core > Custom Code tab page > click the Root htaccess File Custom Code accordion tab.
    6. Paste the Adaptive Image for WordPress plugin’s htaccess code in this Root Custom Code text box: 1. CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE
    7. Click the Save Root Custom Code button.
    8. Go to the B-Core > Security Modes tab page and click the Root Folder BulletProof Mode Activate button.
    9. Go to the BPS Setup Wizard page and run the Pre-Installation Wizard and Setup Wizard again.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.