How do those url filters really work?

Author Message
Jan Martin Pettersen 07/02/2006 04:33 pm
Hello.. Here's something I've wondered about for quite some time (as no examples in the
docs shows multiple * matching, not with all three parts anyway):

If I have a url, lets say in the format http://www.dummy.com/get.php?a=1&b=2&c=3

How would I match it, and still have access to all three parts?

According to the docs matching http://www.dummy.com/get.php?a=*&b=*&c=*
would match the url (and it does), but now comes the strange part:

If I set the replace to:

&b=**&c=*

then I can replace those as I like, BUT:

If I set the replace to:

get.php?a=***&b=**&c=* (all three used, according to the docs with *** and ** before *.

and replace with to:
Category_*.html (c is the category number).
then it won't match any url at all..

What am I doing wrong?

The reason I ask is that I want to convert urls in that format to 'Category*.html'

It probably might be wise to get the TEST button to show the resulting url (as it already does), but in additon also show exactly what is assigned to (***,** and *), as this probably would be easier to debug then.

Rgds,
Jan
Oleg Chernavin 07/03/2006 05:34 am
What about using the rule:

URL:
*
Replace:
get.php**&c=*
With:
Category_*.html

This works well.

Best regards,
Oleg Chernavin
MP Staff
Jan Martin Pettersen 07/03/2006 07:47 pm
> What about using the rule:
>
> URL:
> *
> Replace:
> get.php**&c=*
> With:
> Category_*.html
>
> This works well.

Thank you, it worked perfectly :)

The suggestion above would be useful though.. That way when using TEST one can determine what part goes where.

The problem might be with multiple rules and this..
Maybe display the values for the stars for the last rule or something?
Jan Martin Pettersen 07/03/2006 07:49 pm
When talking about stars I mean the ***, **, and * values.

Rgds,
jan
Oleg Chernavin 07/04/2006 05:52 am
OK. I will think about this. Thank you!

Oleg.