Support » Plugin: BulletProof Security » .htaccess – need help

  • Resolved zzbloggerzz

    (@zzbloggerzz)


    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

    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/

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

    (@aitpro)

    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

    (@aitpro)

    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

    (@zzbloggerzz)

    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

    (@aitpro)

    Thread Starter zzbloggerzz

    (@zzbloggerzz)

    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=PT+Sans:700
    http://www.guidetostopsnoring.com/?sccss=1&ver=5303
    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

    (@aitpro)

    Sorry not really sure either. 😉 I guess go on a Google journey. ha ha ha.

    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

    (@zzbloggerzz)

    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

    (@aitpro)

    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.