WordPress Blog Ki Loading Speed Ko htaccess Se Fast Kaise Banaye

जब किसी ब्लॉग की 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 करने के बारे में बताने वाले हैं.

See also  WordPress Tips and Tricks - For Every Bloggers

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 करें.
See also  WordPress Blog Post URL Ke Last Me .html Kaise Add Kare Aur Q Kare

      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 करें.

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

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

          Like the post?

          Also read more related articles on BloggingHindi.com Sharing Is Caring.. ♥️

          Sharing Is Caring...

          10 thoughts on “WordPress Blog Ki Loading Speed Ko htaccess Se Fast Kaise Banaye”

          Leave a Comment

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

          ×