<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SEO Blog &#187; speed up website</title>
	<atom:link href="http://www.bigseotechniques.com/blog/tag/speed-up-website/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bigseotechniques.com/blog</link>
	<description>For the latest SEO news</description>
	<lastBuildDate>Thu, 02 Feb 2012 11:10:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Speed up your website using Gzip compression</title>
		<link>http://www.bigseotechniques.com/blog/speed-up-your-website-using-gzip-compression/</link>
		<comments>http://www.bigseotechniques.com/blog/speed-up-your-website-using-gzip-compression/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 03:07:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[seo techniques]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[speed up website]]></category>

		<guid isPermaLink="false">http://bigseotechniques.com/blog/?p=27</guid>
		<description><![CDATA[&#160; How to speed up your website using Gzip compression As mentioned on another post regarding the Google caffeine update and the new websites load time ranking factor. its very important to try and optimise your websites loading speed. There are a few ways of getting this done and will try and explain. The first [...]
Related posts:<ol>
<li><a href='http://www.bigseotechniques.com/blog/google-caffeine-update-site-load-time-speed-webmaster/' rel='bookmark' title='Google caffeine update &#8211; site load time speed &#8211; webmaster'>Google caffeine update &#8211; site load time speed &#8211; webmaster</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h1>How to speed up your website using Gzip compression</h1>
<p>As mentioned on another post regarding the <a href="http://www.bigseotechniques.com/blog/google-caffeine-update-site-load-time-speed-webmaster/">Google caffeine update</a> and the new websites load time ranking factor. its very important to try and optimise your websites loading speed.</p>
<p>There are a few ways of getting this done and will try and explain.</p>
<p>The first way is possible if your server supports mod_gzip or mod_deflate</p>
<p>On one of my sites I&nbsp; use a hostgator shared server which doesnt support this. However their dedicated and VPS servers do.</p>
<p>if your server does support this then you can add some coding to your .htaccess file which will enable the compression for you.&nbsp;</p>
<p>Our job here will be to configure the server so that it will return zip content should the users browser support this.</p>
<p>On Apache servers this can be done by adding the following code to the .htaccess file<strong><code><br />
	</code></strong></p>
<p><strong><span style="color: rgb(128, 0, 0);"><code># compress all text &amp; html:<br />
	AddOutputFilterByType DEFLATE text/html text/plain text/xml</code></span></strong></p>
<p><code><span style="color: rgb(128, 0, 0);"><strong># Or, compress certain file types by extension:<br />
	&lt;Files *.html&gt;<br />
	SetOutputFilter DEFLATE<br />
	&lt;/Files&gt;</strong></span></code><strong><code><br />
	</code></strong></p>
<p>If for some reason you can not change your .htaccess file or your server does not support mod_gzip or mod_deflate then you can change your HTML files to PHP files and then add the following code at the top of the page</p>
<p><code><br />
	</code><strong><span style="color: rgb(128, 0, 0);"><code>&lt;?php if (substr_count($_SERVER[&#39;HTTP_ACCEPT_ENCODING&#39;], &#39;gzip&#39;)) ob_start(&quot;ob_gzhandler&quot;); else ob_start(); ?&gt;</code></span></strong><code><br />
	</code></p>
<p>With this code you are sort of setting up your own server &#8211; you are telling it to accept the encoding and return a gzip file otherwise the regular version.</p>
<p>Its as simple as that. I would recommend trying to use the .htaccess way if possible but if not then change to php. The results are great and can reduce your page size by 70%.</p>
<p>A few things that you will need to consider when doing this.</p>
<p>Firstly when you rename your files from .HTML to .PHP then you will need to update all internal links to point to these pages. From a SEO&nbsp;perspective this would mean that your url has changed and any backlinks pointing to the old .HTML pages will return a 404 not found error. This ultimately means that the backlinks you created will be pointing to a place that does not exist and your new url will have no backlinks pointing to it. You can however do a server side redirect but from previous experience its not very effective &#8211; still better to do it then not.</p>
<p>One thing that I would recommend is to create future websites using the PHP extension and not HTML</p>
<p>Once you have added the coding to your PHP file or have enabled server side compression then you should go and check it has worked.</p>
<p>You can do this by</p>
<p><strong>Online:</strong>-going to www.whatsmyip.org/http_compression and entering your url</p>
<p><strong>Through your browser</strong>:- if you have the web developers toolbar then you can go to <strong>information&gt;view document size</strong> and see if the size has reduced</p>
<p>Here are a few useful pics that I&nbsp;found which should explain how Gzip compression works &#8211; Any questions then please feel free to post</p>
<p style="text-align: center;"><a href="http://www.bigseotechniques.com/images/HTTP_request.png"><img alt="non compressed" src="http://www.bigseotechniques.com/images/HTTP_request.png" /></a></p>
<p style="text-align: center;"><img alt="gzip compression" src="http://www.bigseotechniques.com/images/HTTP_request_compressed.png" /></p>
<p> <!--END--></p>
<p>Related posts:<ol>
<li><a href='http://www.bigseotechniques.com/blog/google-caffeine-update-site-load-time-speed-webmaster/' rel='bookmark' title='Google caffeine update &#8211; site load time speed &#8211; webmaster'>Google caffeine update &#8211; site load time speed &#8211; webmaster</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bigseotechniques.com/blog/speed-up-your-website-using-gzip-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

