* Note: This article only applies to Linux hosting. On IIS, compression is normally enabled on server level. *
Does your website appear to be loading slow? Speed it up using gzip compress and mod_deflate. You can first verify if your site is already serving compressed content from this link. If it isn’t, add the following code in the .htaccess file under your website folder, save it and then check again for compression. Your site should be loading pages significantly faster now!
### Enable gzip compression for PHP files
php_value output_handler ob_gzhandler
### 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
### End of compression code
All our servers need you to enable outgoing SMTP server authentication to be able to…
Learn how to configure and check your DNS settings in Plesk. After you registered your…
This video demonstrates how to use the Force HTTPS Redirect feature. This feature allows you…
Use cPanel's MultiPHP Manager to manage your domains' PHP version. Being able to manage the…
This tutorial will help you to configure Microsoft Outlook 2016 for an email account. Step…
Generally emails are directly delivered to the destination server. However, if the delivery attempt to…