Running a website you have to constantly test to ensure your user experience is great. Here are recent changes I made to the website to load faster than 50%+ of websites tested with Pingdom. You can also use these steps to speed up your website on other hosts as well. I started making these changes because of the article I read “21 Simple and Free SEO Tools” @ BufferSocial. #1 was Google’s PageSpeed Insights. This study will be broken up into multiple parts with speed result to test changes.

Welcome to part 1.
Warning: Google is brutal as far as servers are concern. A 70-100 for Desktop  is acceptable in my opinion & a 60-100 for mobile.
Pre-Requisite: Before you begin test your site @ Pingdom & PageSpeed Insights. This will let you see your changes at work when you results improve.
Test Sites:
Pingdom: http://tools.pingdom.com/fpt/
PageSpeed Insights: https://developers.google.com/speed/pagespeed/insights/

Results:
PageSpeed Insights: — Mobile = 52/100 | — Desktop = 66/100
Pingdom: I do not have pre-requiste results for pingdom

Who is this for? This is for anyone looking to increase their site speed/load time especially on shared hosting using non-WordPress & WordPress sites.

Lets Begin Editing Your .htaccess file

 

If you are using WordPress your .htaccess file should look similar to this: Your .htaccess file can be created or edited using a text editor i.e. Notepad or similar. Save the file without an extension.

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

## ENABLE GZIP COMPRESSION ##
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
## ENABLE GZIP COMPRESSION ##

## LEVERAGE BROWSER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 2 days” </IfModule>
## LEVERAGE BROWSER CACHING ##

Part 2: Enable CloudFlare CDN | Coming Soon

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!

Share This