BloggingHindi - Blogging Aur Internet Ki Sabhi Jankari

  • About Us
  • Contact Us
  • Blogging
  • WordPress
  • SEO

WordPress Blog Ki Loading Speed Ko htaccess Se Fast Kaise Banaye

Last Updated on April 20, 2021 by Md Arshad Noor 10 Comments

Content Summary

  • WordPress ब्लॉग की Loading speed को .htaccess द्वारा fast कैसे करें.
        • For Enable Gzip compression
        • For Enable Caching
        • For Cache Control

जब किसी ब्लॉग की loading time slow होता है तो उस ब्लॉग में जाने के लिए हमारा मन नही करता है. क्योकि इसकी slowness की वजह से हमारा time waste तो होता ही है और साथ साथ Internet data भी ज्यादा use होता है. जिस ब्लॉग की loading speed slow होती है, उसे गूगल भी पसंद नही करता है. जिसके कारण ब्लॉग को Google में अच्छी रैंक नही मिल पाती है. अगर आपका ब्लॉग WordPress पर है तो इस post को पढ़िये. हम इस Post में बिना किसी plugin के .htaccess द्वारा Blog की loading speed को fast करने के बारे में बता रहे हैं।

Wordpress blog ki loading speed ko fast kaise banaye htaccess ke dwara

आपके ब्लॉग में चाहे कितना भी अच्छा post क्यों न हो लेकिन अगर आपका ब्लॉग 6-7 second में load होता है तो आपके ब्लॉग की traffic बहुत ज्यादा कम होगा. इसका कारण यह है की जब कोई visitor आपके ब्लॉग में आता है और आपका ब्लॉग slow loading होता है, जिसे कोई भी visitor पसंद नही करता है तो इसीलिए वह आपके ब्लॉग से वापस चले जाता है. आपको तो पता ही होगा की India में अभी भी बहुत से लोग 2G internet use करता है. Slow loading होने वाले ब्लॉग को Google पसंद नही करते हैं और इसको कभी भी टॉप पर नही show करता है. इस तरह की Blogs की SEO में बहुत कम rank होती है.

अगर आपका ब्लॉग wordpress पर है तो बहुत से plugins भी है. अगर आप चाहो तो उन्हें install कर सकते हो. हम यहाँ पर जो methods बताने जा रहे हैं वो बिना plugin का use किये कर सकते हो. ज्यादा plugin use करने से बहुत से problems का सामना करना पड़ता है. Plugin में बहुत ज्यादा script होता है, जिससे हमारे ब्लॉग की loading speed slow हो जाती है. इसीलिए हम यहाँ पर .htaccess के द्वारा ब्लॉग को speed करने के बारे में बताने वाले हैं.

WordPress में php, JavaScript, CSS script को use किया जाता है. जो बहुत slow loading होती है. इसीलिए हमे इन सभी को Compression Gzip, Cache करना पड़ता है. ऐसा करने से हमारा ब्लॉग की loading time fast हो जाता है. इसको करने के लिए बहुत सारे plugins है. अगर आप चाहो तो ये काम W3 Total Cache के द्वारा भी कर सकते हो. अगर आप ये काम बिना किसी plugin को करना चाहते हो तो हम इसके बारे में निचे बताएँगे.

In this post, हम .htaccess के द्वारा Compression Gzip, Cache करने के बारे में बता रहे है. इसके लिए हम कुछ code बताएँगे जिन्हें आपको अपने ब्लॉग की .htaccess file में add करना है. यहाँ हम Gzip compression के को enable करने के बारे में जानेंगे. इससे ब्लॉग की files की size कम हो जाती है. जिससे हमारा ब्लॉग fast loading होता है और हम यहाँ पर Caching के बारे में भी जानेंगे. जब कोई visitor हमारे ब्लॉग में visit करता है तो उसका data जमा रहता है, जिसे cache कहते है. इसको empty करना बहुत जरूरी होता है.

WordPress ब्लॉग की Loading speed को .htaccess द्वारा fast कैसे करें.

यहाँ हम निचे कुछ code बताने वाले हैं, जिन्हें .htaccess file में add करना पड़ेगा. इससे पहले की हम process start करें, आपको एक जरुरी सुचना देना चाहता हूँ की .htaccess file में अगर थोड़ा सी भी mistake हो जाये तो ब्लॉग open नही होगा. इसीलिए इसको edit करने से पहले इसका backup जरूर download करें.

Step 1: सबसे पहले अपने ब्लॉग की CPanel में login करें. (www.youblog.cPanel/)

  1. अब File Manager पर Click करें.

      Step 2:

      1. अब public_html पर click करें.
      2. यहाँ पर .htaccess नाम से एक file होगा, उसपर click करें.
      3. अब Edit पर Click करें.

          Step 3: अब निचे में हम codes बता रहे है. जो code जिस काम का है, उसे हम बता रहे हैं.

          For Enable Gzip compression

          Gzip compression को enable करने से ब्लॉग में जितने files है. उसकी size कम हो जायेगी, जिससे आपका ब्लॉग fast loading होगा। इसको enable करने के लिए निचे दिए गए code को copy करके अपने htaccess file में paste करें।

          # compress text, html, javascript, css, xml:
          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
          AddType x-font/otf .otf
          AddType x-font/ttf .ttf
          AddType x-font/eot .eot
          AddType x-font/woff .woff
          AddType image/x-icon .ico
          AddType image/png .png
          

          For Enable Caching

          हमारे ब्लॉग में जब visitors आता है और posts को read करता है तो उसका data हमारे server पर save हो जाता है. इसको समय समय में delete करना पड़ता है, नही तो हमारा blog slow हो जाता है. अगर आप caching को auto delete करते रखना चाहते हो तो निचे दिए गए code को copy करके अपने ब्लॉग की htaccess file में paste करें।

          #BEGIN EXPIRES HEADERS
          
          # 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"
          
          #END EXPIRES HEADERS
          

          For Cache Control

          ऊपर दिए गए code से cache delete होता है. इसको control करना बहुत important होता है. इसके लिए निचे दिए गए कोड को copy करके अपने ब्लॉग की htaccess file में paste करें।

          # 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
          

          जब दोनों codes को अपने htaccess file में add कर लोगे तो उसको save कर दीजिए. इसके बाद अब आप GTMetrics में अपने ब्लॉग की loading speed check करें. इससे आपका ब्लॉग बहुत ही fast हो जायेगा. आप Caching के लिए plugin का भी use कर सकते हो. इसके लिए W3 Total Cache या Autoptimize का use करें.


          में उम्मीद करता हूँ की आपको यह post अच्छा लगा होगा. अगर आपको इस पोस्ट से सम्बंधित कोई सवाल पूछना है तो comment करें. आपको यह पोस्ट कैसा लगा हमे comment के through जरूर बताएँ और

          You May Also Like

          • WordPress Ke Liye 30 Useful Code Snippets [Full Customize & Control]

            WordPress Ke Liye 30 Useful Code Snippets [Full Customize & Control]

          • WordPress Install karne Ke Baad 10 Jaruri Sittings Kare

            WordPress Install karne Ke Baad 10 Jaruri Sittings Kare

          • WordPress Theme Select Karne Se Pahle 8 Chize Consider Kare

            WordPress Theme Select Karne Se Pahle 8 Chize Consider Kare

          • Blog/Website Me Meta Tags Generator Tool Kaise Add Kare.

            Blog/Website Me Meta Tags Generator Tool Kaise Add Kare.

          About Md Arshad Noor

          हेलो दोस्तों, मेरा नाम मोहम्मद अरशद नूर है. में इस ब्लॉग में रेगुलर नई नई आर्टिकल्स लिखता हूँ. यहाँ पर हम ज्यादातर Blogging, Make Money, SEO, WordPress आदि से सम्बंधित Article मिलेगी. आपको हमारी लेख पसंद आती है तो इसे सोशल मीडिया में शेयर करें। अगर आपको कोई सहायता चाहिए तो कमेंट कीजिए।

          COMMENTs ( 10 )

          1. Rekha kumari says

            htaccess file kahan hota hai. plz bataiye .. meri wordpress dashboard me loading speed bahut jayada hai.

            Reply
            • Md Arshad Noor says

              Aap iss post ko thik se padho, isme bata diya gaya hai ki .htaccess file kaha hota hai. (Your cPanel ->File Manager ->public_html ->.htaccess)

              Reply
          2. ANTESH SINGH says

            wordpress blog ke liye best fastest loading free theme kaun si hai ?

            Reply
            • Md Arshad Noor says

              Try Genesis or Thrive themes

              Reply
          3. ANTESH KUMAR SINGH says

            wordpress blog ke liye best cache plugin kaun si hai ?

            Reply
            • Md Arshad Noor says

              Try W3 Total Cache or WP Super Cache

              Reply
          4. Antesh kumar singh says

            sir image lazy load ke liye kaun si plugin hoti hai

            Reply
            • Md Arshad Noor says

              Use BJ Lazy Load

              Reply
              • c3school says

                sir ji aap apne website pr kaun sa themes use kr rhe hai

                Reply
                • Md Arshad Noor says

                  Genesis

                  Reply

          Leave a Reply Cancel reply

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

          Please do not spam! otherwise your comment will be removed.

          This site uses Akismet to reduce spam. Learn how your comment data is processed.

          Useful Articles

          Blog me Page navigation kaise add kare

          Kisi Hosting Provider Se Hosting Kharidne Se Pahle 10 Sawal Puchhe

          Backlinks Kya Hai? Puri Jankari Hindi Me

          WordPress Se jQuaru Strings Ko Remove/Fix Kaise Kare

          Blog Me Meta Tag with Advanced Future Kaise Add Kare

          Adsense se jyada earning karne ke liye 52 Tips

          Google Penalty Kya Hai? Google Se Site Ko Penalty Kyo Milti Hai?

          Top Bloggers Se 10 Important Blogging Secrets

          Blog Ke Categories Me Font Awesome Icon Kaise Kare

          WordPress Blog Ke All External Links Ko New Tab Me Open Kaise Kare (Without Plugin)

          SEM kya hai? iski puri jankari

          Kisi Bhi Blogger Ko Link Exchange Kyu Nahi Karna Chahiye? [5 Reasons]

          Blog Ke Owner Hone Ke Nate 5 Kaam Jarur Kare [Important Tips]

          About Us

          mdarshadnoorहेल्लो दोस्तों, मेरा नाम मोहम्मद अरशद नूर है. में अररिया, बिहार का रहने वाला हूँ. मुझे नयी चीजें सीखना-सिखाना बहुत पसंद है. में पिछले 5 सालों से ब्लॉगिंग के फील्ड में हूँ. इस ब्लॉग में आपको ब्लॉगिंग और इन्टरनेट से सम्बन्धित जानकारी मिलेगी.

          SUBSCRIBE OUR NEWSLATTER

          हमारे ब्लॉग के रेगुलर विजिटर हो तो अभी Subscribe कर लीजिए ताकि आप हमारे नए पोस्ट को सबसे पहले पढ़ पाएँ!

          Posts for WP Users:

          Bina Plugin Ke Automatically WordPress Backup Setup Kaise Kare

          WordPress Ke 10 Myths – Apko Pata Hona Chahiye

          Top 10 Big Companies Jinki Website WordPress Par Hai

          WordPress Blog Manage Karne Ke Liye 40+ ShortCut Keys – For Fast Bloggers

          WordPress Post Ya Kahi Bhi Feedback System Kaise Add Kare

          More Posts from this Category

          Recommended For You

          Adsense Account Kaise Banaye [Step By Step]

          Newbie Bloggers ko SEO Ke Only 8 Myths Par Dhyan Dena Chahiye

          Blog me Email Subscription widget Kaise Add Kare 2 Tarike

          WordPress Me Multi Author Blogging Ko Enable Karke Guest Post Accept Kaise Kare – Guest Blogging

          Internal Linking Kya hai? Internal Linking karne Ke 5 Fayde

          Virtual Reality क्या है? और कैसे काम करता है?

          Adsense Ko Analytics se Connect kaise kare

          Facebook Se Dofollow Backlink Kaise Banaye [Get High Quality Backlink]

          Blogger Blog Me Schema.org Data Kaise Add kare.  Google Rich Snippet ke Liye

          Copyright © 2021 - All rights reserved.AboutContactSitemapDisclaimer