How to use your .htaccess file to minify your CSS / Javascript

<IfModule mod_rewrite.c>
RewriteEngine on

# You may need RewriteBase on some servers
#RewriteBase /min

# rewrite URLs like "/min/f=..." to "/min/?f=..."
RewriteRule ^([bfg]=.*) index.php?$1 [L,NE]
</IfModule>
<IfModule mod_env.c>
# In case AddOutputFilterByType has been added
SetEnv no-gzip
</IfModule>

  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

How to enable Gzip to speed up your website

Navigate to the www directory of your website.Open or create a .htaccess file.Copy the following...

Remove mod_pagespeed (a caching module enabled by default)

Our servers use mod_pagespeed by default.This is an open source module which compresses pages...

How to install Django on shared cPanel hosting

- Log into your account using SSH. - pip install django==1.8.7- pip install flup==1.0.2 - cd ~...

Powered by WHMCompleteSolution