HOW TO OPTIMIZE WORDPRESS FOR FASTER LOADING TIME-PROVEN TIPS

Wordpress Logo

Website Optimization speed plays an important role in internet. Even Google page rank also depends on Site loading speed. So i made a research on this topic and come out with best techniques and result is My site Softwarebuzzer loads less than 5 seconds. Make your site faster and it gets more visitors to your site. In this article you can see , how to optimize your wordpress site proven tips bye me :)

Tutorial

  • First step Get a Best website hosting like Hostgator, Since Better web hosting services make your site better performance. And We Recommend Hostgator ,since we didn’t fail any downtime at all .
  • Second step is Removing unwanted plugins in wordpress. Since the more wordpress plugins the more loading time :( , So make a short list of plugins and remove all unwanted plugins.
  • Optimize all images while uploading. Since images having high resolution will takes more time to load at the user end.
  • Adding images to Thumb also should be optimized to size of 150*150 or lesser.
  • Remove unwanted affiliate ads,Scripts on your site . If you want to earn money First satisfy the Blog visitors if they satisfy they will surely buy your affiliate products too.
  • Fourth Step should be Optimizing Database. Database should be optimized every day(if possible) . As a wordpress users we have got a plugin for database optimization use it and optimize the database.
  • Add plugins of Wp-minfy and Smush.it.
  • wp minfy will compress your css, javascript codes. and wp minify plugin will compress and optimize your images :) .

Note: The better the optimization of images, the faster loading time of site :)

  • In next step add a Cache plugin for your wordpress plugin. The best the cache plugin the better the performance too. We recommend you to install w3 Total Cache
  • After installing a cache plugin your site is faster now :) . Now we are making your site still more faster by Using FREE CDN
  • CDN (Content Delivery Network) will catch all your statics files like, images, css, javascripts so that the process of your hosting server will reduce , since the CDN will take care of this process :) We are using SpeedyMirror a CDN which offers 50GB free bandwidth .
  • Singup for the CDN and setup with w3 Total cache. After setting up the CDN , click on Deploy option to start your CDN working.
  • The optimization is not yet over :P . we are at final stage of optimizing the .httaccess also :)add the code below for .httaccess.
  • So in this we are enabling cache and Gzip and stopping hotlinking by .httacess

Gzip- Compress all your images, css, javascirpt, text, and php files for better performance and faster loading time.

Hotlinking- Its a process of using your images on other websies. this means the images hosted on your site but the resources are used from your server . So we need to stop it by adding some code in .httaccess file .

Code for Cache and Gzip is:

# BEGIN Compress text files

SetOutputFilter DEFLATE

# END Compress text files

# BEGIN Expire headers

ExpiresActive On ExpiresDefault “access plus 1 seconds” ExpiresByType image/x-icon “access plus 2592000 seconds” ExpiresByType image/jpeg “access plus 2592000 seconds” ExpiresByType image/png “access plus 2592000 seconds” ExpiresByType image/gif “access plus 2592000 seconds” ExpiresByType application/x-shockwave-flash “access plus 2592000 seconds” ExpiresByType text/css “access plus 604800 seconds” ExpiresByType text/javascript “access plus 216000 seconds” ExpiresByType application/x-javascript “access plus 216000 seconds” ExpiresByType text/html “access plus 600 seconds” ExpiresByType application/xhtml+xml “access plus 600 seconds”

# END Expire headers

# BEGIN Cache-Control Headers

Header set Cache-Control “max-age=2592000, public”

Header set Cache-Control “max-age=604800, public”

Header set Cache-Control “max-age=216000, private”

Header set Cache-Control “max-age=600, private, must-revalidate”

# END Cache-Control Headers

# BEGIN Turn ETags Off

Header unset ETag

FileETag None # END Turn ETags Off

# BEGIN Remove Last-Modified Header

Header unset Last-Modified

# END Remove Last-Modified Header

Source code for Hotlink is : #disable hotlinking of images with forbidden or custom image option RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?yourdomain.com/.*$ [NC] #RewriteRule .(gif|jpg)$ – [F] RewriteRule .(gif|jpg)$ http://www.yourdomain.com/stophotlinking.jpg [R,L]

0 comments:

Post a Comment