First test the speed of your web http://gtmetrix.com/dashboard.html and save the results
Step 1: Download smartoptimizer.zip , extratc it, and upload into the root folder
EX: root/public_html/smartoptimizer/
set chmod 777 the folder Cache
EX: root/public_html/smartoptimizer/cache/
Step 2 :Open .htaccess from root/public_html/, and add this code at the end :
Code: Select all
<IfModule mod_expires.c>
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
ExpiresActive On
ExpiresDefault "access plus 10 years"
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1
<IfModule mod_expires.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1
</IfModule>
<IfModule !mod_expires.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1
</IfModule>
</IfModule>
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
FileETag none
</FilesMatch>
Step 3: Test It ! http://gtmetrix.com/dashboard.html you will notice a BIG CHANGE !
You can edit the baisc config from smartoptimizer/config.php
If this was an usefull post commnet your results !