How to Speed up WordPress website ?

3
156

Guys aaj ki iss article me . Mai aapko ek trick share karne vala huu. Jisse aapka website 90 % fast ho jayega . But yaha par kuch factor depend karte hai. Agar aapne hosting acchi nhi li hai . To aapka server ka response time accha nhi hoga. Jisse aapki website ki load time slow hogi. Server response time ko kam karne ka ek hi tarika hai. Ki aap hosting acchi vali hai. Jahan tak kosis karte cloud hosting lene ka. Kyuki new generation ke hisab se shared hosting ab bahut kam bloggers use karte hai. Aur shared hosting utna accha bhi nhi hota. But agar aap beginner hai. To aap shared hosting le sakte hai.

How to Speed up WordPress Website

Dekhye mai aapko ek file dene vala huu . Jiise aapko . Htaccess file me paste karna hai. Mai aapko step by step batata huu.

1. Copy following Code

# BEGIN DEFLATE COMPRESSION
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
</IfModule>
# END DEFLATE COMPRESSION# BEGIN GZIP COMPRESSION
<IfModule mod_gzip.c>
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>
# END GZIP COMPRESSION#BEGIN EXPIRES HEADERS
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default expiration: 1 hour after request
ExpiresDefault “now plus 1 hour”
# CSS and JS expiration: 1 week after request
ExpiresByType text/css “now plus 1 week”
ExpiresByType application/javascript “now plus 1 week”
ExpiresByType application/x-javascript “now plus 1 week”
# Image files expiration: 1 month after request
ExpiresByType image/bmp “now plus 1 month”
ExpiresByType image/gif “now plus 1 month”
ExpiresByType image/jpeg “now plus 1 month”
ExpiresByType image/jp2 “now plus 1 month”
ExpiresByType image/pipeg “now plus 1 month”
ExpiresByType image/png “now plus 1 month”
ExpiresByType image/svg+xml “now plus 1 month”
ExpiresByType image/tiff “now plus 1 month”
ExpiresByType image/vnd.microsoft.icon “now plus 1 month”
ExpiresByType image/x-icon “now plus 1 month”
ExpiresByType image/ico “now plus 1 month”
ExpiresByType image/icon “now plus 1 month”
ExpiresByType text/ico “now plus 1 month”
ExpiresByType application/ico “now plus 1 month”
# Webfonts
ExpiresByType font/truetype “access plus 1 month”
ExpiresByType font/opentype “access plus 1 month”
ExpiresByType application/x-font-woff “access plus 1 month”
ExpiresByType image/svg+xml “access plus 1 month”
ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
</IfModule>
#END EXPIRES HEADERS# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch “\.(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control “public”
</filesMatch>
<filesMatch “\.(css)$”>
Header set Cache-Control “public”
</filesMatch>
<filesMatch “\.(js)$”>
Header set Cache-Control “private”
</filesMatch>
<filesMatch “\.(x?html?|php)$”>
Header set Cache-Control “private, must-revalidate”
</filesMatch>
</ifModule>
# END Cache-Control Headers

 

2. Ab apne cpanel me login kare.
3. Cpanel me successfully login hone ke baad file manager open kare.
4. Ab public_html file me jaye. Aur .htaccess file ko edit kare. Ab uper diye gye code ko sabse niche paste kar de. Ab aapka website fast load hoga.

Blogger vs WordPress – Which is best for Blogging in 2019

Final Words

To aaj maine aapko bta diya aap kaise apne wordpress website ki load time kam kar sakte hai. Isse aapka css, html, js etc file compress ho jayega . Kyuki ye file to dekyne me chhote lag te hai . But asal me ye bahut badi coding se bante hai. Jisse load hone me bahut time lagta hai. To agar aapko ye Article accha laga hai to like , share , comment karna na bhule . Thank You

3 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here