Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12479

Reply To: Custom Code – mod_gzip htaccess custom code not working

$
0
0

Hello, I am having a problem with adding GZIP custom code to my website which runs the free version of BPS. I watched your custom code video and I changed also the .htaccess file permissions to 644 and I am trying to add the following code:

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png

I am adding this code on the Custom Code > Root htaccess File Custom Code > “CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE” and it supposed to be changing the following line only (since it’s the only one highlighted in yellow):

# CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE - Your Custom htaccess code will be created here with AutoMagic

which I guess is just a comment.

Now, I am normally supposed to turn back to the first tab of the BPS tool “Security Modes” and click “Create secure.htaccess File”, but when I do that it redirects me to [mywebsite's domain]/wp-admin/admin.php?page=bulletproof-security/admin/options.php which is a 404 error.

Any idea on how to fix this or how to activate the GZIP compression?

  • This reply was modified 3 hours, 45 minutes ago by Avatar of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12479

Trending Articles