<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: mod_rewrite and APEX</title>
	<atom:link href="http://tylermuth.wordpress.com/2008/08/12/mod_rewrite-and-apex/feed/" rel="self" type="application/rss+xml" />
	<link>http://tylermuth.wordpress.com/2008/08/12/mod_rewrite-and-apex/</link>
	<description>Technology with a focus on Oracle, Application Express and Linux</description>
	<lastBuildDate>Fri, 13 Nov 2009 11:47:58 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christopher Beck</title>
		<link>http://tylermuth.wordpress.com/2008/08/12/mod_rewrite-and-apex/#comment-1463</link>
		<dc:creator>Christopher Beck</dc:creator>
		<pubDate>Wed, 13 Aug 2008 22:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/?p=108#comment-1463</guid>
		<description>Tyler,

Couldn&#039;t the &lt;b&gt;[0-9]{0,}*&lt;/b&gt; in Line 9 just be &lt;b&gt;[0-9]*&lt;/b&gt; since * indicates &quot;zero or more&quot;.  

Also, I don&#039;t see the ranges for 4, 40-49 and 400-499 represented?!?!

If I read your current rules correctly

Line 7 - the 4000s
Line 9 - any number that does not start with a 4
Line 11 - any number thats start with 4 that is 40000 or greater

How about this?

# Change all 4000s to builder DAD
RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/apex/f?p=(4[0-9]{3}:.*)
RewriteRule /pls/apex/ /pls/builder/f?p=%1 [R]  

# Change 4, 40-49, 400-499, or any number starting with 4 greater than 40000 to apex DAD
RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(4[0-9]{0,2}&#124;4[0-9]{4,}:.*)
RewriteRule /pls/builder/ /pls/apex/f?p=%1 [R]

# Change all numbers not starting with 4 to apex DAD
RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(([1-3]&#124;[5-9])[0-9]*:.*)  
RewriteRule /pls/builder/ /pls/apex/f?p=%1 [R] 


chris.</description>
		<content:encoded><![CDATA[<p>Tyler,</p>
<p>Couldn&#8217;t the <b>[0-9]{0,}*</b> in Line 9 just be <b>[0-9]*</b> since * indicates &#8220;zero or more&#8221;.  </p>
<p>Also, I don&#8217;t see the ranges for 4, 40-49 and 400-499 represented?!?!</p>
<p>If I read your current rules correctly</p>
<p>Line 7 &#8211; the 4000s<br />
Line 9 &#8211; any number that does not start with a 4<br />
Line 11 &#8211; any number thats start with 4 that is 40000 or greater</p>
<p>How about this?</p>
<p># Change all 4000s to builder DAD<br />
RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/apex/f?p=(4[0-9]{3}:.*)<br />
RewriteRule /pls/apex/ /pls/builder/f?p=%1 [R]  </p>
<p># Change 4, 40-49, 400-499, or any number starting with 4 greater than 40000 to apex DAD<br />
RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(4[0-9]{0,2}|4[0-9]{4,}:.*)<br />
RewriteRule /pls/builder/ /pls/apex/f?p=%1 [R]</p>
<p># Change all numbers not starting with 4 to apex DAD<br />
RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(([1-3]|[5-9])[0-9]*:.*)<br />
RewriteRule /pls/builder/ /pls/apex/f?p=%1 [R] </p>
<p>chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler Muth</title>
		<link>http://tylermuth.wordpress.com/2008/08/12/mod_rewrite-and-apex/#comment-1462</link>
		<dc:creator>Tyler Muth</dc:creator>
		<pubDate>Wed, 13 Aug 2008 21:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://tylermuth.wordpress.com/?p=108#comment-1462</guid>
		<description>Thanks to some feedback from &lt;a href=&quot;http://christopherbeck.wordpress.com&quot; rel=&quot;nofollow&quot;&gt;Christopher Beck&lt;/a&gt;, I changed line 9 such that it includes all numbers from 1-3999 and 5000-infinity.  My original line only had numbers 100-3999 and 5000-infinity.  Since it might be possible to create an app with a number less than 100, best to play it safe.  Original line 9:
&lt;code&gt;RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(([1-3]&#124;[5-9])[0-9]{2,}:.*)&lt;/code&gt;
New line 9:
&lt;code&gt;RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(([1-3]&#124;[5-9])[0-9]{0,}:.*)&lt;/code&gt;
Note the change from ...{3,}... meaning &quot;2 or more&quot; to ...{0,}..., meaning &quot;0 or more&quot;.  Thanks Chris!</description>
		<content:encoded><![CDATA[<p>Thanks to some feedback from <a href="http://christopherbeck.wordpress.com" rel="nofollow">Christopher Beck</a>, I changed line 9 such that it includes all numbers from 1-3999 and 5000-infinity.  My original line only had numbers 100-3999 and 5000-infinity.  Since it might be possible to create an app with a number less than 100, best to play it safe.  Original line 9:<br />
<code>RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(([1-3]|[5-9])[0-9]{2,}:.*)</code><br />
New line 9:<br />
<code>RewriteCond %{REQUEST_URI}%{QUERY_STRING} /pls/builder/f?p=(([1-3]|[5-9])[0-9]{0,}:.*)</code><br />
Note the change from &#8230;{3,}&#8230; meaning &#8220;2 or more&#8221; to &#8230;{0,}&#8230;, meaning &#8220;0 or more&#8221;.  Thanks Chris!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
