<?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>Interconnect IT - WordPress Consultants, Web Development and Web Design &#187; htaccess</title>
	<atom:link href="http://interconnectit.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://interconnectit.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 15:19:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Speeding site load times with htaccess</title>
		<link>http://interconnectit.com/24/speeding-site-load-times-with-htaccess/</link>
		<comments>http://interconnectit.com/24/speeding-site-load-times-with-htaccess/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 10:16:31 +0000</pubDate>
		<dc:creator>Interconnect IT</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://liverpoolwebdesigner.wordpress.com/2007/11/15/speeding-site-load-times-with-htaccess/</guid>
		<description><![CDATA[Create an &#8220;.htaccess&#8221; file in the folder you want to be cached and add the following to it. # Cache files for a week. &#60;IfModule mod_headers.c&#62; &#60;IfModule mod_expires.c&#62; &#60;FilesMatch ".(jpg&#124;jpeg&#124;png&#124;gif&#124;swf&#124;css&#124;js)$"&#62; Header set Cache-Control "max-age=604800, public" &#60;/FilesMatch&#62; &#60;/IfModule&#62; &#60;/IfModule&#62; This will have the effect of caching your site for a week. The number 604800 refers to the number of seconds in&#8230; <a class="more" href="http://interconnectit.com/24/speeding-site-load-times-with-htaccess/">continue reading <span class="unicode">&#8674;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Create an &#8220;.htaccess&#8221; file in the folder you want to be cached and add the following to it.</p>
<pre><code># Cache files for a week.
&lt;IfModule mod_headers.c&gt;
  &lt;IfModule mod_expires.c&gt;
    &lt;FilesMatch ".(jpg|jpeg|png|gif|swf|css|js)$"&gt;
      Header set Cache-Control "max-age=604800, public"
    &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
&lt;/IfModule&gt;
</code></pre>
<p>This will have the effect of caching your site for a week. The number 604800 refers to the number of seconds in a week you should also see the file types mentioned in the line above. Change them as you see fit.</p>
<p>You will need mod_headers and mod_expires enabled in your apache htpd.conf for this to work, but with the ifmodule statements in there there should be no problem if they aren&#8217;t installed. If it wasn&#8217;t for the two ifmodule statements your site would be dumped to a 500 server error if it couldn&#8217;t find them.</p>
<p>To check the expiration times I find the easiest way is to load the page in Firefox, right click somewhere and hit &#8220;View page info&#8221; then go to the media tab. You will see date and time for the expected expiry of the image files on your site.</p>
]]></content:encoded>
			<wfw:commentRss>http://interconnectit.com/24/speeding-site-load-times-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

