How To Increase WordPress Website Loading Speed Using Htaccess

Ad Space Available Contact Us info@websolpak.com

Regardless of whether you are a designer or a standard web user, practically we all love quicker websites. This post is focused on how to Increase Page Speed using Htaccess (WordPress). You may definitely realize that there are a lot of approaches to speed up WordPress using Htaccess code. In the following article, I will walk you through five best Htaccess stunts to optimize site speed.

First, of all, we should begin with a list of Htaccess tricks to speed up, which I am going to cover in this post. The list I have arranged spreads the significant proposals by the vast majority of the web developers on the world to speed up WordPress website using Htaccess.

How to improve WordPress site speed via htaccess

  • Enable Gzip Compression
  • Enable Keep Alive
  • Leverage Browsing Caching
  • Activate mod_pagespeed
  • Enable Light Speed Server Cache

1. Enable Gzip Compression:-

The first Htaccess trick on the list is Gzip compression

I am able to reduce page size by 73% by enabling Gzip Compression on my website.

* Gzip Compression on Apache

# TN START GZIP COMPRESSION

<IfModule mod_gzip.c>

Article inline ad #2

mod_gzip_on Yes

mod_gzip_dechunk Yes

mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$

mod_gzip_item_include handler ^cgi-script$

mod_gzip_item_include mime ^text/.*

mod_gzip_item_include mime ^application/x-javascript.*

mod_gzip_item_exclude mime ^image/.*

mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

</IfModule>

# TN END GZIP COMPRESSION

* DEFLATE Compression on Apache

# TN START DEFLATE COMPRESSION

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE “application/atom+xml” \

“application/javascript” \

“application/json” \

“application/ld+json” \

“application/manifest+json” \

“application/rdf+xml” \

“application/rss+xml” \

“application/schema+json” \

“application/vnd.geo+json” \

“application/vnd.ms-fontobject” \

“application/x-font” \

“application/x-font-opentype” \

“application/x-font-otf” \

“application/x-font-truetype” \

“application/x-font-ttf” \

“application/x-javascript” \

“application/x-web-app-manifest+json” \

“application/xhtml+xml” \

“application/xml” \

“font/eot” \

“font/otf” \

“font/ttf” \

“font/opentype” \

“image/bmp” \

“image/svg+xml” \

“image/vnd.microsoft.icon” \

“image/x-icon” \

“text/cache-manifest” \

“text/css” \

“text/html” \

“text/javascript” \

“text/plain” \

“text/vcard” \

“text/vnd.rim.location.xloc” \

“text/vtt” \

“text/x-component” \

“text/x-cross-domain-policy” \

“text/xml”

</IfModule>

# END DEFLATE COMPRESSION

Below Article Content Ad
Ad Space Available Contact Us info@websolpak.com

Leave a Reply

Your email address will not be published. Required fields are marked *

14 + seventeen =

Back to top button
Close
Close