Current time: 09-09-2010, 06:27 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compress your website for speed and SEO
03-18-2010, 10:48 AM
Post: #1
Compress your website for speed and SEO
As recommended by Google, you can compress your website before delivering it to the users browser, this can drastically speed up your site and improve your Google placements.

Just add the following code to your .htaccess file

Code:
#Compress The Files
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
# removes some bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

Andrew
Hosted Web UK Staff
www.hostedweb.co.uk
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: