• Home
  • Blogging
    • WordPress
    • Blogger
  • SEO
  • Paise Kamaye
  • Adsense
  • Affiliate Marketing
  • Social Media
  • Web Hosting
  • WordPress Settings

Hindi Me Online

HindiMeOnline | SEO | Make Money Online Ki Jankari Hindi Me

Gzip Compression Enable Kaise Kare Loading Speed Badhane Ke Liye

20/01/2018 by Surendra Singh 40 Comments

जब से google ने वेबसाइट speed को अपने ranking फैक्टर में शामिल किया है तब से हर एक ब्लॉगर अपने ब्लॉग पेज की loading speed fast करने के लिए कई तरह की technics अपनाने लगा है लेकिन फिर भी बहुत से ऐसे लोग हैं जिन्हें website speed optimization के बारे में सही जानकारी नहीं होती है। इसलिए आज में आपको gzip compression enable कैसे किया जाता है इसके बारे में बताने वाला हूँ जिससे आप gzip compression WordPress ब्लॉग पर enable करके loading speed को improve कर सकें।

Gzip Compression Enable Kaise Kare Loading Speed Badhane Ke Liye

आज के समय में हिंदी ब्लॉगिंग में भी बड़ी तेजी से competition बढ़ता जा रहा है जिसकी वजह से अपने ब्लॉग को google में rank करवाना कठिन होता जा रहा है।

मेरे कहने का मतलब ये नहीं है कि अब आपका content search engine में rank प्राप्त नहीं कर पायेगा, बल्कि आपका की भी पोस्ट google में जरुर show होंगी। लेकिन इसके लिए आपको थोड़ा सा hard work करना पड़ेगा और अपनी site की loading speed को भी optimize करना पड़ेगा।

जिन blogs की speed slow होती है उन्हें ज्यादातर users ignore करने लगते हैं क्योंकि जो जानकारी आप दे रहे हैं वही इनफार्मेशन उन्हें अन्य blogs पर मिल जाती है जो browser पर बहुत ही जल्दी open हो जाते हैं।

तो सीधी सी बात है कि यदि आपका ब्लॉग जल्दी open होता है तो आपको readers भी पसंद करेंगे और साथ ही साथ Google जैसे बड़े search engine भी अपने search रिजल्ट में आपका ब्लॉग content को अच्छी rank देंगे।

लेकिन इसका मतलब ये नहीं है कि आपकी वेबसाइट की speed अच्छी है वो बहुत fast load होती है तो आपको अच्छी rank मिल जाएगी। क्योंकि google में अच्छी ranking पाने के लिए content में दम होना भी बहुत जरुरी होता है और loading speed के अलावा भी बहुत सारे factors होते हैं जिनके अनुसार search engine rank provide करता है।

Read Also:

  • Leverage Browser caching problem कैसे fix करते हैं
  • SSL install करने के बाद SEO के लिए क्या करना जरुरी होता है

तो सबसे पहले हमें ये जानना बहुत जरुरी होता है कि loading speed कम करने के लिए जो gzip compression किया जाता है वो क्या होता है और कैसे काम करता है।

Gzip compression क्या होता है और कैसे work करता है ?

यह एक DEFLATE algorithm पर बना हुआ होता है जिसमें LZ77 और Huffman coding का उपयोग किया जाता है जिसे server के लिए file compressor भी कह सकते हैं।

जब हम अपने wp blog पर इसे configure करते हैं तो ये हमारी बहुत सी files को compress करके बहुत कम size का बना देता है और जो visitor ब्लॉग open करने की server को request send करता है उसके browser पर वो compress की हुयी files को send कर देता है जिसकी वजह से वेबसाइट की loading speed fast हो जाती है।

यदि किसी ब्लॉग पर Gzip compression enabled ना हो तो जब आप speed check करेंगे तो उसमें आपको एक चीज दिखाई देगी कि server request बहुत ज्यादा होतीं है, और जिस वेबसाइट की server request ज्यादा होंगीं उसकी loading speed भी उतनी ही slow होगी।

यदि हम gzip compression enable करके अपने ब्लॉग की speed Gtmetrix या Pingdom tools पर check करेंगे तो आपको बहुत कम server request दिखाई देंगीं, और जिस ब्लॉग पर जितनी कम request होंगी वो उतना ही जल्दी user के browser में open होगा।

WordPress speed optimization में Gzip compression का बहुत बड़ा योगदान होता है इसलिए हर एक ब्लॉगर को अपनी site में configure करना चाहिए। ये ठीक उसी तरह काम करता है जिस तरह आपके कंप्यूटर में किसी file को compress करके उसका size छोटा किया जाता है।

आपने कई बार देखा होगा कि जब हमारे लैपटॉप या मोबाइल में कोई Zip file होती है जिसका size कम होता है और जब हम उसे decompress या extract करते हैं तो उसका size लगभग दोगुना हो जाता है।

बस यही technic को हम अपने wordpress ब्लॉग पर Gzip compression settings करके use करते हैं जिससे server site files को compress करके visitor के browser पर decompress कर देता है जिससे वेबसाइट की speed fast हो जाती है।

Gzip compression Enable करने के फायदे :

अपने wordpress ब्लॉग पर Gzip activate करने के जो फायदे होते हैं वो इस प्रकार हैं –

  • इससे आपके server पर बहुत कम load पड़ता है।
  • आपके hosting server की bandvidth की बहुत ज्यादा बचत होती है।
  • server और browser के बीच में डाटा packets बहुत तेजी से फ्लो करते हैं जिससे site की speed improve होती है।
  • वेबसाइट की speed अच्छी होने की वजह से user का इंटरेस्ट बढ़ता है।
  • ब्लॉग की speed अच्छी होने की वजह से google ranking में सुधार होता है जिससे search रिजल्ट बढ़ जाता है।
  • gzip compression करने से Loading speed fast होती है जिससे आपके ब्लॉग का bounce rate कम हो जाता है, क्योंकि हर एक user जल्दी से जल्दी इनफार्मेशन पाना चाहता है उसे wait करना बिल्कुल पसंद नहीं होता।
  • यदि आपके ब्लॉग पेज का size 1MB का है तो आप उसे इसके द्वारा 300-500 KB का कर सकते हैं जिसकी वजह से बहुत कम server request बनती हैं और पेज जल्दी load होता है।

Apache server हमें दो तरह के compression options देता है जिसमें एक है mod_deflate जिसे कोई भी बहुत आसानी से set कर सकता है और दूसरा है mod_gzip इसे configure करना आसान नहीं सभी hosting company के साथ लेकिन ये deflate से ज्यादा powerfull होता है जिससे pre-compress content बन जाता है।

आज के समय में mod_deflate को ही shared hosting के लिए लगभग सभी webmasters अपनी वेबसाइट को fast बनाने के लिए use करते हैं और खुद में भी इसे ही use करता हूँ।

Read Also:

  • WordPress Database backup कैसे लिया जाता है
  • WordPress ब्लॉग का domain कैसे बदल सकते हैं

Gzip compression test कैसे करते हैं ?

सभी wordpress users अपने ब्लॉग पर कोई ना कोई cache plugin use करते हैं, में भी WP Fastest cache plugin का उपयोग करता हूँ तो इस तरह की plugins में पहले से ही gzip compression के option मौजूद होते हैं जिन्हें enable करके server request reduce कर सकते हैं।

लेकिन मैंने एक बात ये देखी है कि cache plugin से उतना ज्यादा फायदा नहीं होता है ये मेरा पर्सनल experience है इसलिए मैंने gzip compression code को use किया जिससे ब्लॉग पेज का size बहुत अच्छे से compress हो गया जिससे server request कम हो गयीं और पेज की speed में भी काफी इम्प्रूवमेंट देखने को मिला है।

तो यदि आप भी cache plugin को use कर रहे हैं तो एक बार अपने ब्लॉग का Gzip compression जरुर check कर लें कि वो सही से work कर रहा है या नहीं। इसे चेक करने के लिए Gzip compression checker tools का उपयोग कर सकते हैं। यदि enable हुआ तो वो कुछ इस तरह की रिपोर्ट दिखायेगा –
Bloglon gzip example –gzip example

इसमें आपको स्पष्ट दिखाई दे रहा है कि मेरे ब्लॉग का original size 35734 bytes है और compressed size 8555 bytes है मतलब 27KB का reduction हुआ है जिससे मेरी files 76% compress हुयी हैं।

WordPress Blog में Gzip compression htaccess method से कैसे enable करते हैं ?

वैसे तो इसके लिए कुछ plugins भी फ्री में उपलब्ध हैं लेकिन में इसके लिए किसी plugin को use करना सही नहीं मानता हूँ क्योंकि जब कोई काम बिना plugin के हो जाये तो इससे बढ़िया और क्या हो सकता है। मुझे मालूम है आप भी Yoast SEO plugin का use करते होंगे तो इसलिए इसी के द्वारा htaccess file में एक code add करने के बारे में बताएँगे।

यदि आपको अपने ब्लॉग पर Gzip enable करना है तो आगे बताये गए स्टेप्स को फॉलो कीजिये –

स्टेप -1

  • सबसे पहले अपना WordPress Dashboard open कर लीजिये।
  • इसके बाद SEO >> Tools पर क्लिक कर दीजिये।
  • अब File Editor पर क्लिक कर दीजिये और नीचे की तरफ आइये जहाँ आपको htaccess file दिखाई देगी।

ज्यादा जानकारी के लिए htaccess file कैसे edit करते हैं इसे read कर सकते हैं।

स्टेप -2

अब नीचे दिए गए code को अपनी htaccess file में सबसे नीचे paste कर दीजिये और सेव कर दीजिये।

# 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
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

इस code में text compression, css compressor, js compressor के साथ साथ image, fonts के लिए भी rules set किये गए हैं जिसका मतलब इस तरह की file को gzip compression में शामिल किया गया है।

Read Also:

  • वेबसाइट में Anti Ad blocker Warning कैसे show कर सकते हैं
  • ब्लॉग पोस्ट में कलरफुल Content Box कैसे लगाते हैं

इस तरह से आप अपनी site का wordpress optimization gzip compression enable करके कर सकते हैं यदि आपको इससे सम्बंधित कुछ पूछना है तो कमेंट करके पूछ सकते हैं। यदि आपको ये जानकारी पसंद आई हो तो कमेंट करके हमें अपना फीडबैक जरुर दें जिससे हम ज्यादा बेहतर इनफार्मेशन आपके लिए लाते रहे। इस जानकारी को सोशल मीडिया पपर शेयर जरुर करें।

Share This Content :-
TwitterFacebookWhatsAppGoogle+Pin It

About Surendra Singh

Surendra Singh is Founder and Author of BlogLon. I am Full Time Blogger and having experience of 5 years in Blogging & SEO.

Comments

  1. Aryan says

    20/01/2018 at 10:30 pm

    Sir maine aapke fb me ek screenshot bheja hai, jara dekhiye kya problems hai..

    Reply
    • Surendra Singh says

      21/01/2018 at 7:43 am

      Jo screenshot me errors dikh Rahe hai Un par click kijiye plus ke sign par usme suggestion Mil jayega ki kya karna hai.

      Reply
  2. Girdhari Singh says

    21/01/2018 at 2:59 pm

    बहुत ही बढ़िया जानकारी दी आपने, धन्यवाद

    Reply
  3. Juhi Rani says

    21/01/2018 at 10:09 pm

    Is code Ko blogger website me Kahan par use kare ?

    Reply
    • Surendra Singh says

      22/01/2018 at 6:58 am

      Blogspot blog me ye sab nahi kar sakte ye sirf wp blog me hi enable hota hai.

      Reply
  4. Gagan Shrivastav says

    22/01/2018 at 9:00 pm

    Bahut hi badhiya aur Informative Article Sir…..Yese hi Articles aage bhi likhte rahiye…..

    Reply
  5. Prince Parihar says

    22/01/2018 at 9:29 pm

    How much are you making monthly from only HostGator India Affiliate Program ?

    Reply
  6. Raj says

    24/01/2018 at 8:34 am

    Bahut hi achhi v unique jankari di hai blogger ke liye bahut hi useful rahegi . Good luck

    Reply
  7. Naresh says

    24/01/2018 at 4:55 pm

    Brother,
    Muje Hostgator Cpanel Me Mahino se Ek Problem Ho Rahi Hai.

    Your Ip Adress Change pls Trai again

    To Mene Hostgator Custmor care me Baat Ki To Bolte Hai Ye Aapki Net Issue Hai.

    Bro Isko Fix Kaise Karte Hai
    Kyu Ki Me Pehle Idia me Net Pack Krata tha
    Ab Jio Me

    Or Mera Smartphone Bhi Naya liya Hai

    Bro Plz Help

    Reply
    • Surendra Singh says

      24/01/2018 at 5:07 pm

      Hostgator India ke sath ip ki problem rahti hai, ye sabhi bloggers ke sath hai aap unse baat Karke hi solve Kar sakte hai.

      Reply
    • SURENDRA Rsdp says

      01/02/2018 at 12:31 pm

      Naresh , Aapka Hosgator Chanel nahi khul raha hain toh usko Firefox Mobile app me Kholiye , Problem Alive Ho Jaygi .

      Reply
  8. Jina says

    24/01/2018 at 8:23 pm

    thanks sir, share karne ke liye.

    agar kisi ke pass magnto hosting hai or agar us website ki speed badani hai to kya kare?

    please help kariye

    Reply
    • Surendra Singh says

      25/01/2018 at 7:31 am

      Chahe koi bhi hosting ho speed optimization process same hi rahti hai.

      Reply
  9. Pravin says

    24/01/2018 at 8:43 pm

    Mere adsense account me crowler error aa raha hai. usme mere kuch link diye huye hai aur linke last me..

    ?m=1

    lagke aa raha hai jiske vajah se link open nahi hoti.. page not found aata hai. yah kaisi prob.. hai. kya ye robot txt prob.. hai agar hai to kaise solve kare

    Reply
    • Surendra Singh says

      25/01/2018 at 7:35 am

      Blogger blog me is Tarah ki problem aati rahti hai, iska koi bhi solution mere paas nahi hai aap kisi dusre blogger Se is bare me Salah le sakte hai.

      Reply
      • Pravin says

        25/01/2018 at 11:43 am

        Nahi sir mai wordpress blog ki bat kar aha hu

        Reply
        • Surendra Singh says

          25/01/2018 at 5:14 pm

          Aap apne WordPress blog ki link dijiye

          Reply
  10. Nehal says

    25/01/2018 at 5:51 pm

    Sir yeh post kafi helpful thi mere liye maine apna gzip compression check kiya tha woh 77% hain.

    Reply
  11. Deepak sahu says

    26/01/2018 at 8:37 am

    sir, search console se 404 error ko permanently remove kaise kare? kyu ki search console me temporary hide karne ka option deta hai.

    Reply
    • Surendra Singh says

      26/01/2018 at 8:48 am

      Iske bare me pahle se ek post me Jankari de chuka hu isliye aap 404 not found errors wali post padhiye.

      Reply
  12. Sandeep kumar says

    29/01/2018 at 5:49 pm

    Sir , mere blog ki loading speed kaisa hai
    check karke bataye

    Reply
  13. manoj says

    01/02/2018 at 10:48 am

    badiya jankari di aapne

    Reply
  14. SUMIT KUMAR GUPTA says

    01/02/2018 at 3:36 pm

    sir kya adsesne ke code ko post ke bich me nahi add krna chahiye

    Reply
    • Surendra Singh says

      01/02/2018 at 4:00 pm

      Aap jaha chahe vaha apne blog me ads laga sakte hai.

      Reply
  15. Bitu Kumar says

    02/02/2018 at 12:10 pm

    new information padh kar accha laga thanks

    Reply
  16. dev says

    02/02/2018 at 6:57 pm

    bhyi apke site me kaphi behtar jaankari milti hai. bhayi me apse jaanta chahta hu ki meri income 10% tds katkar aati hai. kya in paiso ko bank se vapas liya jaa skta hai

    Reply
  17. Adip Gaurav says

    03/02/2018 at 12:28 pm

    Bhut he Acchi Jaankari Share ki hai aapne, Thanks for Sharing!

    Reply
  18. BS.Gusain says

    04/02/2018 at 2:48 pm

    Nice post !

    sir, yah method blogger per bhi apply hoga.
    ya phir kewal WP ki liye hai.

    Thank you

    Reply
    • Surendra Singh says

      04/02/2018 at 3:39 pm

      Ye sirf wordpress blogs ke liye hai, blogger blog par aisa kuchh nahi Kar sakte.

      Reply
  19. Anoop bhatt says

    05/02/2018 at 9:27 am

    Bhut achi post hai sir
    Sir please help
    Google search console me maine sitemap sumit kiaya tha or meri 100 post submit hui lekin index keval 9 hui or yah apne aap kam hoakr pahle 5 hui or uske baad 4 ho gai to sir kya blog me kuch problam bai

    Reply
    • Surendra Singh says

      05/02/2018 at 9:46 am

      Ho sakta hai aapne apne blog ki full sitemap submit na ki ho isliye sabse pahle blogger sitemap wali post read kijiye.

      Reply
  20. lucky says

    06/02/2018 at 10:35 pm

    wordpress user ke liye ye post faydemand hai par kya aap bata sakte hai ki koi esa tarika hai jisse ki blogger blog ki speed ko badhaya ja sake esi koi mathod jo sach me kaam karti ho.

    Reply
  21. Hussain says

    07/02/2018 at 11:32 am

    bhai apse mera 2 sawal hai

    1) main wordpress sikhna chahta uske lie kuch dino ka free hosting kaha se milega

    2) abhi mai blogger use karta hoon aur minima colored mag mere free custom theme hai but isme auto adsense ads generate hokar show hota hai ise kaise solve kare .

    Reply
    • Surendra Singh says

      07/02/2018 at 8:44 pm

      1. Free hosting ke bare me post dali hui hai use padh lijiye.
      2. Theme change Kar dijiye.

      Reply
  22. Satish Halmare says

    09/02/2018 at 8:26 pm

    badiya bhai aap ne bahut badiya bataya

    Reply
  23. techno tips hindi says

    05/03/2018 at 8:32 pm

    sir mere mei sitemap ka 404 error aa raha hai maine ek baar sitemap delete kar ke fir se submit kiya hai fir bhi nhi ho raha hai

    Reply
    • Surendra Singh says

      06/03/2018 at 3:02 pm

      इस तरह का error तभी आता है जब आप अपनी किसी पोस्ट या पेज के यूआरएल को change करते हो या delete करते हो ये automatically ठीक हो जायेगा कुछ समय बाद।

      Reply
  24. Mahatab singh says

    01/04/2018 at 8:24 am

    Sir mera blog hai. mere blog ki speed abhi bhi bahut slow hai. gtmetrix mein enable Enable gzip compression ke baare mein kah raha hai but meine apke diye code ko apply kar diya hai phir bhi wahi problem aa rahi hai

    Reply
    • Surendra Singh says

      02/04/2018 at 11:28 am

      Sirf Gzip Compression se speed optimize nahi hoti iske sath sath minify aur cache plugin ka bhi use karna padta hai.

      Reply
  25. Mukesh kaushal says

    14/04/2020 at 2:05 pm

    You article is so nyc well information

    Reply

Leave a Reply Cancel reply

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

Search Topic Here

Join Also 6,814 Bloggers

Facebook
Twitter
Instagram
Google+
YouTube
Subscriber

Hindi Me Online



Free Subscribe Here

HindiMeOnline

Free Subscribe Kare Aur Apne Email Par Internet Ki Latest Jankari Daily Paye

Copyright ©2019 · Hindi Me Online - All Rights Reserved ·
Contact US | About US | Sitemap | Disclaimer | Privacy Policy