Nate.... ok... what's the \w/ for?  I'm not seeing that in my list of stuff
I can use in the docs.

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-----Original Message-----
From: Nathan Strutz [mailto:str...@gmail.com] 
Sent: Wednesday, December 22, 2010 8:53 AM
To: cf-talk
Subject: Re: More rewrite rule fun


Mark,

If your regex ^([^/]*)/parts(/)?$ captures anything after the parts/, you
have a bad regex engine.

You probably want something like this: ^.*/parts/([\w/]+)$

Using the same replace pattern, you will end up
with
/controllerScript.cfm?prodtype=product&displayaction=displayProductCategorie
s&model=subcategory1/subcategory2/subcat3

Not sure if that's what you're going for, but a bad response is better than
no response from the list ;)

nathan strutz
[http://www.dopefly.com/] [http://hi.im/nathanstrutz]


On Wed, Dec 22, 2010 at 7:23 AM, Mark A. Kruger
<mkru...@cfwebtools.com>wrote:

>
> Ok regex gurus. here's what I have. I'm using IsapiRewrite (Helicon) on an
> IIS server.
>
>
>
> I have links like the following:
>
>
>
> http://domain/model/parts/subcat1/subcat2/subcat3/subcat4/subcat5
>
>
>
> From 1 to 6 levels of sub categories.
>
>
>
> My rule finds "parts" and the "model" .. So I need a rule that gives me
the
> rest of the url (everything after /parts/) and directs it to my controller
> -
> which figures out what to display. Here's what I have that works for  the
> first level..
>
>
>
> RewriteRule ^([^/]*)/parts(/)?$
>
>
/controllerScript.cfm?prodtype=product&displayaction=displayProductCategorie
> s&model=$1 [L,QSA]
>
>
>
>
>
> So what do I need to work with subsequent levels.  I'm trying to add
> something to the end of /parts(/)?$ . like (/*) or (/)*? . something that
> variablizes the rest of the URL .but I'm falling flat.
>
>
>
> Any rewrite gurus out there know what I'm doing wrong? Will I need a rule
> for each possible level maybe?
>
>
>
> -mark
>
>
>
>
>
> Mark A. Kruger, MCSE, CFG
>
> (402) 408-3733 ext 105
>
> Skype: markakruger
>
>  <http://www.cfwebtools.com> www.cfwebtools.com
>
>  <http://www.coldfusionmuse.com> www.coldfusionmuse.com
>
>  <http://www.necfug.com/> www.necfug.com
>
>
>
>
>
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:340204
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to