Hi Michael, OK .. so you have a link with:
http://www.mysite.com/mypage.cfm?key1=1&key2=122 On the mypage.cfm (which could be the same page with the link) one providing the link have something like: <ciff isdefined("url.key1") and val(url.key1)> <cflocation url="../myredirectpage.cfm/#url.key2#"> </cfif> Is this what you are trying to achieve? Jenny -----Original Message----- From: Michael Grant [mailto:mgr...@modus.bz] Sent: 25 April 2011 19:37 To: cf-talk Subject: Re: htaccess - 301 - wildcard and remove query string. Anyone? Bueller... Bueller... Bueller... Anyone... Anyone... Anyone? On Sat, Apr 16, 2011 at 2:24 PM, Michael Grant <mgr...@modus.bz> wrote: > I so suck at regex and redirects. I suck at lots of other stuff to, but > that's irrelevant to this post. > > The simple explanation of what I want is a url like : > mysite.com/sales/1/122/?key=value&key2=value2 to redirect to just > mysite.com/sales/1/122. > > The ideal situation is anything that ends in /122 (mysite.com/*/122/) to > redirect to mysite.com/sales/1/122/. > > So first, strip the query string, second if it's /122 go to sales/1/122. > > Any help would be greatly appreciated. > > -Michael > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:343984 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm