Hello,

I'm having a problem with a rule.  We just updated the framework of our 
ColdFusion website.  We've been using urlrewrite with CF and IIS for several 
years now.  I wrote a new reduced set of rules that uses a broader regEx to 
allow url's that have multiple parameters to be properly handled regardless of 
their order.

Here's an example of the url that is giving us trouble - note the single 
quotes/apostrophe in women's:

http://www.OURWEBSITE.com/Support-Mobility/Support-Socks-More/Compression-Socks/63685.cfm?key=18129002&cm_mmc=Google-_-Non-Brand-_-Women's%20Moderate%20Compression%20Socks-_-women's%20navy%20moderate%20compression%20socks

Under the old rule the inclusion of the apostrophe would have the result of 
going to a page not found error because no rule allows apostrophe's:

OLD rule:

<rule enabled="true"> 
        
<from>^/support-mobility/([a-z|\-]+)/([\w|\-]+)/([0-9]+).cfm(\?key\=[\w]+)(\&amp;cm_mmc\=[\w|\+|\%|\-|\{|\}|\:|\.]+)$</from>
        <to>/catalog/index.cfm$4&amp;action=product&amp;single_item=$3$5</to> 
</rule>

However, when I tried out the new rule on our website we found that when the 
url above was sent the request would end up stuck - for lack of a better word:

NEW rule:

<rule enabled="true"> 
         <name>Standard Product URL</name> 
         <note>This rule supports standard product URLs with URL 
parameters.</note> 
         
<from>^/[\w|\-]+/[\w|\-]+/[\w|\-]+/([0-9N]+).cfm((\?([\w|\+|\%|\-|\{|\}|\:|\.|\=|&amp;]+)+)*)$</from>
 
         
<to>/catalog/index.cfm?fuseaction=product&amp;single_item=$1&amp;$4</to> 
</rule>

The difference between old and new is that I'm trying to pick up all of the url 
params and pass them through as 1 big chunk since they generally will also 
contain utm_term, utm_source, utm_medium, cpnsource, cm_guid, etc.

When requests that match the criteria AND include an apostrophe come to IIS it 
appears that IIS forwards it to seeFusion (an analysis tool) but it stops and 
the request just starts to gobble up memory until enough of them are stuck in 
the cue that they end up pushing the CPU to 100% utilization.

Does anyone have any thoughts about why the behavior is different.  Neither 
rule says to allow apostrophe's and yet the URL above seems to get rewritten 
and passed to ColdFusion.

I don't know if I'm describing accurately where the request ends up but I can 
see that they go into a cue where they do not complete.

Thanks in advance, Jerry 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to