Title: .htaccess &#8211; need help
Last modified: August 21, 2016

---

# .htaccess – need help

 *  Resolved [zzbloggerzz](https://wordpress.org/support/users/zzbloggerzz/)
 * (@zzbloggerzz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/)
 * Hello,
 * Before I installed BPS Security I had a number of performance optimization code
   in .htaccess. Now after I installed BPS Security –
 * I ran GT Metrix performance test against my site.
    [http://gtmetrix.com/reports/www.guidetostopsnoring.com/2ugdgWYK](http://gtmetrix.com/reports/www.guidetostopsnoring.com/2ugdgWYK)
 * A number of my of optimizations have been lost.
 * In the htaccess File Editor I see a number of tabs such as:
    current root htaccess
   file wp-admin htaccess file secure.htaccess
 * Which htaccess tab should I be using to edit the .htaccess file
    and put back
   in my changes that I want.
 * All this stuff about the .htaccess is a little confusing.
    Not sure of the difference
   between the root htaccess and wp-admin/htaccess – which one is being used.’
 * When I look at .htaccess via ftp – it looks different.
    Can I edit the .htaccess
   directly and then just upload it back to my site ?
 * Please advise.
 * Regards,
 * Fred B.
 * [http://wordpress.org/plugins/bulletproof-security/](http://wordpress.org/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514332)
 * You would use BPS Custom Code instead of manually editing htaccess files directly.
   When you use BPS Custom Code to save your additional/personal custom .htaccess
   code it is saved permanently and will always be included/written to the .htaccess
   files.
 * If you are not sure which BPS Custom Code text boxes your custom .htaccess code
   goes in then post your .htaccess code so that I can tell you which Custom Code
   text box or boxes it goes in.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514458)
 * I assume this answered the question? If not, please post a status update. Thread
   has been resolved. We still receive email notifications when a Thread has been
   resolved.
 *  Thread Starter [zzbloggerzz](https://wordpress.org/support/users/zzbloggerzz/)
 * (@zzbloggerzz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514475)
 * Sorry I had posted a reply but for some reason it didn’t show up.
 * So I had to reconstruct what I had posted. Here it is: Thanks
    for following 
   up.
 * Some of my header expiration definitions
    and instructions to leverage browser
   caching have dissappeared:
 * I am not sure where in the BPS Security
    where to go to add/modify lines in .
   htaccess for the following:
 * 1) Need to add some lines to here:
    <IfModule mod_expires.c> add some lines here
   </IfModule>
 * 2) for deflate gzip stuff
    I need to add/modify here:
 * <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
 * 3) Section for modify/add lines for W3TC cache instructions
    # BEGIN W3TC Browser
   Cache
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514477)
 * These forum topics explain where personal/custom cache code and W3TC cache code
   go in BPS Custom Code.
 * [http://forum.ait-pro.com/forums/topic/htaccess-caching-code-speed-boost-cache-code/](http://forum.ait-pro.com/forums/topic/htaccess-caching-code-speed-boost-cache-code/)
 * [http://forum.ait-pro.com/forums/topic/installing-w3-total-cache-with-bulletproof-security-pro/#post-12199](http://forum.ait-pro.com/forums/topic/installing-w3-total-cache-with-bulletproof-security-pro/#post-12199)
 *  Thread Starter [zzbloggerzz](https://wordpress.org/support/users/zzbloggerzz/)
 * (@zzbloggerzz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514484)
 * Excellent. THanks for the posts. That works great.
    I get how to modify .htaccess
   through BPS Security a little better now.
 * One more question, since you seem to know about these performance
    related issues:
 * I got the following results from gtmetrix.com for their YSlow results.
    Here 
   is what they said:
 * Add Expires headers
    There are 4 static components without a far-future expiration
   date.
 *  [http://fonts.googleapis.com/css?family=Open+Sans](http://fonts.googleapis.com/css?family=Open+Sans)
   
   [http://fonts.googleapis.com/css?family=PT+Sans:700](http://fonts.googleapis.com/css?family=PT+Sans:700)
   [http://www.guidetostopsnoring.com/?sccss=1&ver=5303](http://www.guidetostopsnoring.com/?sccss=1&ver=5303)
   [https://s.ytimg.com/yts/jsbin/www-embed-player-vfl2yM5Gj.js](https://s.ytimg.com/yts/jsbin/www-embed-player-vfl2yM5Gj.js)
 * ===============
    Not sure how to address this. I thought this was addressed in
   the code samples you referred me to. But, maybe not.
 * Thanks.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514485)
 * Sorry not really sure either. 😉 I guess go on a Google journey. ha ha ha.
 *  [MickeyRoush](https://wordpress.org/support/users/mickeyroush/)
 * (@mickeyroush)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514489)
 * I was always under the assumption that any static files that are NOT served from
   your server (your control), you cannot control their Expires Headers.
 *  Thread Starter [zzbloggerzz](https://wordpress.org/support/users/zzbloggerzz/)
 * (@zzbloggerzz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514494)
 * I am not sure. I am just reporting back what gtmetrix.com is reporting. I am 
   assuming they know their stuff.
 * So, I would be surprised if they report something that can’t be addressed. Everything
   I have seen back from them I have been able to address.
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514497)
 * Yes, I believe MickeyRoush is absolutely correct that you cannot control something
   that is not located on/under your website and is being called/loaded from a remote/
   3rd party site. Most remote/3rd party scripts from reputable sites are performance
   optimized on that site so they have as little negative impact as possible on 
   client sites.
 * In general, regarding caching and YSlow or other metrics the idea is you do as
   much as possible to get the best YSlow/metric ranking/grade possible, but really
   all that matters is your actual website performance. If your website performance
   is good then it does not really matter what the YSlow/metric ranking/grade is.

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

The topic ‘.htaccess – need help’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/htaccess-need-help/#post-4514497)
 * Status: resolved