• Resolved Cirinu

    (@cirinu)


    Hi. I’m writing this code code in .htacess and it works:

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>
    ## EXPIRES CACHING ##

    But it vanishes after some time! Even if i did not made any changes to the All In One WP Security & Firewall settings. Is it impossible to write your own .htaccess and use All In One WP Security & Firewall?

    https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpsolutions

    (@wpsolutions)

    But it vanishes after some time! Even if i did not made any changes to the All In One WP Security & Firewall settings. Is it impossible to write your own .htaccess and use All In One WP Security & Firewall?

    Don’t put your code inside the following main AIOWPS tags:
    # BEGIN All In One WP Security
    # END All In One WP Security

    If you place your custom code outside of the above section it will not get wiped away by the AIOWPS plugin. This plugin does not interfere with .htaccess code which is outside of the above-mentioned tags.

    Thread Starter Cirinu

    (@cirinu)

    Oh! Good to know. Thanks.

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

The topic ‘Write to .htaccess’ is closed to new replies.