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 January 5, 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

          • cPanel (FileManager) Me Htaccess File Show Kaise Karaye

            cPanel (FileManager) Me Htaccess File Show Kaise Karaye

          • CSS Se WordPress Me CodeBox Ko Stylish Kaise Banaye

            CSS Se WordPress Me CodeBox Ko Stylish Kaise Banaye

          • WordPress Blog Ka Domain Address Kaise Change Kare -2 Methods [Full Guide]

            WordPress Blog Ka Domain Address Kaise Change Kare -2 Methods [Full Guide]

          • Kisi Bhi Blogger ya WordPress Blog Ka Theme/Template Kaise Check 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.

          Get it on Google Play

          Useful Articles

          Khush Nahi Rahne Wale Logo Ki 5 Buri Aadte

          Revenue Hits kya hai aur isme Account kaise banaye

          Blogspot Blog me Country Specific Redirect Disable kaise Kare

          Spam Mail Sender Se Unsubscribe Karke Spam Mail Se Kaise Bache

          Google Me Search Karne Ke Top 10 Tips & Trick – [Get Right Results Fast]

          Google Search Results Me Blog Ke Sabhi Posts Me Star Rating Kaise Dikhaye

          Blog Homepage Me Only Post Title Kaise Dikhaye

          Blogging me fail hone ka 10 sabse Bada Karan

          Social Media se More Traffic Pane ke Liye 10 Important Tips

          Quora Se Blog Ki Traffic Kaise Badhaye? 5 Tips

          Blog Post me Keyboard key kaise lagaye

          YouTube Se PR9 Dofollow Backlink Kaise Receive Kare

          Blog Post Copy Hone Par Copyright Post Me Automatic Apne Blog Ki Link Add Kare

          About Us

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

          SUBSCRIBE OUR NEWSLATTER

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

          Posts for WP Users:

          WordPress User Roles Ke Bare Me Puri Jankari [With Customization]

          Blog Homepage Layout Post Me Ads Kaise Lagaye [2 Method]

          New WordPress User Se Puchhe Gaye 10 Popular Question [FAQ]

          CPanel Dwara Blog Ka Backup Kaise Lete Hai

          WordPress Blog Ke Theme Ko Export (Download) Kaise Kare – 2 Method

          More Posts from this Category

          Recommended For You

          Google Plus Profile Me Custom URL Setup Kaise Kare

          Adsense India Kis Kis Methods Se Paise Bhejte Hai

          QR Code Kya Hai? QR Code Kaise Banaye aur Scan Kaise Kare

          Website/Blog ka Page Rank Increase kaise kare

          Keyword Aur Queries: Me Kya Difference Hota Hai -[Full Tutorial]

          Google Ke Top 10 Real-Time Result Future – Jo Apke Liye Useful Hogi

          Blogger Me Multiple Authors Ko Kaise Add Kare

          Bloggers Ke Liye 50 Important Tips & Tricks [Hindi]

          Song Writer कैसे बने? Lyrics Writer बनने की पूरी जाकारी

          Copyright © 2020 - All rights reserved.AboutContactSitemapDisclaimer