In the <rules> section of your web.config it'd be something like:

<rule name="favorite color rewrite">
<match 
url="((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))\/((?:[a-z][a-z0-9_]*))"
 
/>
<action type="Rewrite" 
url="index.cfm?q=favorite.colors&amp;{R:2}={R:3}&amp;{R:4}={R:5}" 
appendQueryString="false" />
</rule>


On 4/4/12 5:22 PM, Robert Rhodes wrote:
> Anyone out there know how to set up IIS7 to pass a query string?
>
> Any url construct is probably fine as long as I can pass four variables and
> it does not have a ? or a&  in it (per client's requirements).
>
> I am trying to get something like...
>
> http://mydomain.com/redir/a/red/b/green
>
> to redirect to:
>
> http://mydomain.com/index.cfm?q=favorite.colors&a=red&b=green
>
> Any Ideas?
>
> -RR
>
>
> 

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

Reply via email to