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 Note: The better the optimization of images, the faster loading time of site 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] , So make a short list of plugins and remove all unwanted plugins.
.
. Now we are making your site still more faster by Using FREE CDN
We are using SpeedyMirror a CDN which offers 50GB free bandwidth .
. we are at final stage of optimizing the .httaccess also
add the code below for .httaccess.
0 comments:
Post a Comment