Blogging

Leveraging Browser Caching with .htaccess in WordPress

By August 11, 2013 No Comments

Here is a quick way to improve the speed of your blog and to make it score better in online speed tests. Although the .htaccess file scares a lot of people off, there is really nothing more to do here than to copy and paste about 15 lines into the file.

Step 1: Locate Your .htaccess File

There are a couple ways to do this. For the more tech-savvy, open up your favorite FTP client (like FileZilla) and connect to your server. If you are not comfortable with FTP, you can just log in through your cPanel and navigate to your File Manager. In either case, the .htaccess file will be right in the root directory with your wp-content, wp-admin and wp-includes folders.

Step 2: Paste In The Code

Paste these 15 lines into your .htaccess file. They should go right at the top of the file.

Once you implement this code, many of your main static files will be cached by browsers, therefore taking less time to load when they visit in the future.

Save your .htaccess file and let your readers enjoy an improved experience on your blog.

Leave a Reply

Get In Touch
Send us some info and we will get back to you!
Your Name:
Your Email:
Your Phone:
Your Website: