WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] To Generate a Wp-admin .htaccess File (7 posts)

  1. sweetmelody
    Member
    Posted 3 years ago #

    Just installed BPS to a new website and the error message is 'NO .htaccess file was found in your /wp-admin folder'

    I guess I have to manually generate a .htaccess in wp-admin folder where I had followed the first 2 steps on this link http://www.ait-pro.com/aitpro-blog/1166/bulletproof-security-plugin-support/bulletproof-security-plugin-guide-bps-version-45/#root-or-subfolder-wordpress-installation. However, I met a hurdle in understanding this '...Now go to the BulletProof Security File Editor and click on the Your Current Root htaccess File menu tab and you will see the new .htaccess code that WordPress has written to Your Current Root htaccess File. You can then just copy and paste that WordPress .htaccess code to the secure.htaccess master file using the File Editor and click the Update File button to save your editing changes. You can now activate BulletProof Security Mode.'

    My query is the newly created .htaccess coding in 'Your Current Root htaccess File' is short, while the .htaccess coding in 'secure.htaccess master file' is long. Does it mean that I should replace the long codes with the short codes and that's it?

    Thank you! ☺

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

  2. AITpro
    Member
    Plugin Author

    Posted 3 years ago #

    Yep my explanation needs to be a little clearer on this. Also I am just about to release BPS .46.1 so once that is released I will do some BPS Guide updating and clean up work. This video tutorial on setting up BPS shows what you do with the .htaccess code WordPress generates when you update your permalinks. The video tutorial is a quickie and it is very unpolished. When i realease .46.1 i will have to create a new video tutorial because there has been a major change to Maintenance Mode - it is AutoMagic now. ;)

    In a nut shell you copy just the .htaccess code section that WordPress has generated to the identical matching code section in the secure.htaccess file. You are just overwriting the WordPress section of code and leaving all other .htaccess code in the secure.htaccess file as it is.
    http://www.ait-pro.com/aitpro-blog/2481/bulletproof-security-plugin-support/wordpress-security-bulletproof-security-setup-bulletproof-security-wordpress-subfolder-installation/

  3. sweetmelody
    Member
    Posted 3 years ago #

    Auto magic maintenance mode?! Wow!!! So exciting! Can't wait for that.

    The newly generated .htaccess code in 'Your Current root .htaccess file' has <Limit GET POST>, etc until <END #Wordpress>. Do I just copy all and replace the codes from <BEGIN #Wordpress> until <END #Wordpress> in 'secure.htaccess' file?

    <Limit GET POST>
    ...
    </Limit>
    <Limit PUT DELETE>
    ...
    </Limit>
    # Use PHP5 Single php.ini as default
    ...
    
    # BEGIN WordPress
    ...
    
    # END WordPress
  4. AITpro
    Member
    Plugin Author

    Posted 3 years ago #

    Woo hoo AutoMagic! Yeah it's a really simple thing to code. Much simpler than creating the BPS File Editor. The idea was and is to have it all for Coders, Developers, Designers and regular folks. I personally want manual control of things, but most people just want to click a button and have it done automatically. ;) I did the time consuming part of creating the BPS File Editor, now i can just add AutoMagic for the rest of the htaccess files. ;)

    yep you are only copying and pasting just the WordPress generated htaccess code that starts with # BEGIN WordPress and ends with # END WordPress from "Your Current Root .htaccess File" to the section of htaccess code in the secure.htaccess master file that starts with # BEGIN WordPress and ends with # END WordPress. You are just overwriting or replacing it with what WordPess generated for you. Once the WordPress htaccess code is added to your secure.htaccess master file you can activate BulletProof Mode for you Root folder. The Limit GET POST htaccess code is being generated from another source. ie you have another plugin that is writing htaccess code to your root htaccess file. Thanks

  5. sweetmelody
    Member
    Posted 3 years ago #

    But error still exist - 'NO .htaccess file was found in your /wp-admin folder' after completed the above task.

    Do I have to copy the codes in 'wpadmin-secure.htaccess' to 'Your current wp-admin htaccess File'?

    Thank you for your patient, I'm a little dumb on this. ☺

  6. AITpro
    Member
    Plugin Author

    Posted 3 years ago #

    The BPS File Editor is just for editing and making changes to your BPS Master htaccess files and your currently active htaccess files. To activate htaccess files (activate BulletProof Modes) Click on the Security Modes menu and activate BulletProof Mode for the /wp-admin folder. Also be sure to activate the 2 Deny All BulletProof Modes for your Master folder and your Backup folder.

  7. sweetmelody
    Member
    Posted 3 years ago #

    All done! Thank you for your help. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic