Thanks Ben! I did think this at the beginning, not sure why I gave up on the
idea :OD
Adrian
-Original Message-
From: Ben Doom
Sent: 29 February 2008 17:39
To: CF-Talk
Subject: Re: OT - URL Rewriting, an unknown number of items
Instead of trying to rewrite the list this way, wouldn
oment.
Adrian
-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: 29 February 2008 17:17
To: CF-Talk
Subject: RE: OT - URL Rewriting, an unknown number of items
The simplest way would be to write a rule for each item up to a max that you
think you'd hit
RewriteRule
items=item1,item2,item3
>>
>> The something/somefile parts aren't important, it's the items that I need.
>>
>> Cheers.
>>
>> -Original Message-
>> From: Jordan Michaels
>> Sent: 29 February 2008 16:59
>> To: CF-Talk
>> Subject: Re: OT -
I'm assuming here that you want to deal with them in CF, once you've
gotten to your processing page.
I'd probably use either a replace or a regex to remove the /with/ and
whatever other "known" elements need to be removed from the URL string.
Then, I'd just loop over it as a list with / as a
e.cfm?items=$1,$2,$3
And so on.
> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 29, 2008 12:03 PM
> To: CF-Talk
> Subject: RE: OT - URL Rewriting, an unknown number of items
>
> Sorry, I didn't say what I wanted out
uary 2008 16:59
To: CF-Talk
Subject: Re: OT - URL Rewriting, an unknown number of items
Just to clarify, are you wanting to deal with a list of variables, like so:
fruits = orange, apple, pear, etc
Or are you looking for item1, item2, item3 to contain values to
different variables?
Warm
What do you want the vars to be rewritten into?
Russ
> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 29, 2008 11:52 AM
> To: CF-Talk
> Subject: OT - URL Rewriting, an unknown number of items
>
> Sorry again for the OT.
There's not a way to do an arbitrary number that I know of, other than
using recursive redirection. At a certain point, however, I'd just
start using the query string; that's what it's for. The path is for
specific requests, but if you're adding additional information to the
request (not determin
Just to clarify, are you wanting to deal with a list of variables, like so:
fruits = orange, apple, pear, etc
Or are you looking for item1, item2, item3 to contain values to
different variables?
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
BlueDragon Alliance Member
Sorry again for the OT.
I have a URL in the form:
/with/item1/item2/item3/
Where there can be any number of items.
Is there a RegEx to deal with this?
I could cap the number of items to something acceptable, but either way
would be find.
Thanks.
Adrian Lynch
~~~
10 matches
Mail list logo