<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Case-insensitive mapping with mod_rewrite&#8217;s RewriteMap</title>
	<atom:link href="http://bethesignal.org/blog/2009/03/29/case-insensitive-mapping-with-mod_rewrites-rewritemap/feed/" rel="self" type="application/rss+xml" />
	<link>http://bethesignal.org/blog/2009/03/29/case-insensitive-mapping-with-mod_rewrites-rewritemap/</link>
	<description>where we&#039;re going, we don&#039;t need roads...</description>
	<lastBuildDate>Tue, 10 Apr 2012 17:55:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Kelly Berger</title>
		<link>http://bethesignal.org/blog/2009/03/29/case-insensitive-mapping-with-mod_rewrites-rewritemap/#comment-4518</link>
		<dc:creator>Kelly Berger</dc:creator>
		<pubDate>Wed, 30 Sep 2009 15:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1425#comment-4518</guid>
		<description>So, what exactly would the rewrite map look like in this case (i use text)? I want to be able to accomplish anything coming in to the web site, say uwmedicine.washington.edu, and any destination - file or directory, and match it with a destination. 
Would it be this [key[space]value]?
/patientcare/ http://uwmedicine.washington.edu/patient-care/

so if a user typed in /PatientCare/ it will find a match based on /patientcare/.</description>
		<content:encoded><![CDATA[<p>So, what exactly would the rewrite map look like in this case (i use text)? I want to be able to accomplish anything coming in to the web site, say uwmedicine.washington.edu, and any destination &#8211; file or directory, and match it with a destination.<br />
Would it be this [key[space]value]?<br />
/patientcare/ <a href="http://uwmedicine.washington.edu/patient-care/" rel="nofollow">http://uwmedicine.washington.edu/patient-care/</a></p>
<p>so if a user typed in /PatientCare/ it will find a match based on /patientcare/.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Waugh</title>
		<link>http://bethesignal.org/blog/2009/03/29/case-insensitive-mapping-with-mod_rewrites-rewritemap/#comment-3795</link>
		<dc:creator>Jeff Waugh</dc:creator>
		<pubDate>Sun, 29 Mar 2009 00:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1425#comment-3795</guid>
		<description>Ah, good call -- just ensure that characters are returned, rather than checking it explicitly. Thanks!</description>
		<content:encoded><![CDATA[<p>Ah, good call &#8212; just ensure that characters are returned, rather than checking it explicitly. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glandium</title>
		<link>http://bethesignal.org/blog/2009/03/29/case-insensitive-mapping-with-mod_rewrites-rewritemap/#comment-3793</link>
		<dc:creator>glandium</dc:creator>
		<pubDate>Sat, 28 Mar 2009 20:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1425#comment-3793</guid>
		<description>You can avoid both the NOT_FOUND hack and a second map lookup (though it will be cached, it might be faster to do a regexp match/capture than a lookup ; not sure, though) with something like this:
RewriteCond ${urls:%1} ^(.+)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}%1? [R=permanent,L]

You can also change the second match to use (.*) instead of (/.*\.html) which you already know will match, since it matched in the first one, or you may want to match to use (.*) on the first one and (/.*\.html) on the second if you can have urls ending with .HTML.</description>
		<content:encoded><![CDATA[<p>You can avoid both the NOT_FOUND hack and a second map lookup (though it will be cached, it might be faster to do a regexp match/capture than a lookup ; not sure, though) with something like this:<br />
RewriteCond ${urls:%1} ^(.+)$<br />
RewriteRule ^(.*)$ <a href="http://%" rel="nofollow">http://%</a>{HTTP_HOST}%1? [R=permanent,L]</p>
<p>You can also change the second match to use (.*) instead of (/.*\.html) which you already know will match, since it matched in the first one, or you may want to match to use (.*) on the first one and (/.*\.html) on the second if you can have urls ending with .HTML.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

