<?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>that's my stapler &#187; htaccess</title>
	<atom:link href="http://www.thatsmystapler.org/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thatsmystapler.org</link>
	<description>Excuse me, I believe you have my stapler.</description>
	<lastBuildDate>Thu, 03 Jun 2010 18:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>rewritification</title>
		<link>http://www.thatsmystapler.org/2007/12/14/rewritification/</link>
		<comments>http://www.thatsmystapler.org/2007/12/14/rewritification/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 20:43:30 +0000</pubDate>
		<dc:creator>Shade</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.thatsmystapler.org/2007/12/14/56/</guid>
		<description><![CDATA[Widge, See the Apache docs on RewriteRule. Your rule RewriteRule ^(.+)\\.html http://www.needcoffee.com/html/$1.htm [r=301,nc] says to match using ^(.+)\\.html (Beginning of URI, one or more characters until we hit a \ (presumably counts as backslash or slash here?) ending in .html, and store the &#8220;one or more characters&#8221; part for later use in a backreference. Having [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.widgettwalls.com/2007/12/14/redirecting-html-to-htm-via-htaccess/">Widge</a>,</p>
<p>See the Apache docs on <a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteRule">RewriteRule</a>.</p>
<p>Your rule</p>
<p><code>RewriteRule ^(.+)\\.html http://www.needcoffee.com/html/$1.htm [r=301,nc]</code></p>
<p>says to match using <code>^(.+)\\.html</code> (Beginning of URI, one or more characters until we hit a \ (presumably counts as backslash or slash here?) ending in .html, and store the &#8220;one or more characters&#8221; part for later use in a backreference.</p>
<p>Having captured the original URI minus the .html in $1 for later use, we redirect to the .htm URI with an HTTP response code of 301 (resource moved permanently.)  The nc makes the operation case-insensitive.</p>
<p>Please note, I&#8217;m not doing this from memory, I just looked at the doc, so I could be wrong on some points. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thatsmystapler.org/2007/12/14/rewritification/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
