Secure your website using Let’s Encrypt with Certbot SSL

After watching the below video about HTTPS, I decided to finally make the move over to SSL. Fortunately, there’s a free way of doing so by using Let’s Encrypt. I’m going to provide the exact steps I took, which … read more

Browser Caching via .htaccess

I added simple browser caching through my .htaccess file.

vi .htaccess

IMPORTANT: Add the following to the top of the file.

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
read more

Enable mod_deflate On CentOS 6 (Enable Compression)

Add to .htaccess.

## ENABLE COMPRESSION ##
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType 
read more