saokar / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

Funtions don't seem to work for me #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I'm having problems with the urlrewriter filter.

I've got this in my urlrewrite.xml

<rule enabled="true" match-type="wildcard">
    <from>/old_test/**</from>
    <to type="permanent-redirect">/new_test/${lower:$1}</to>
</rule>

From this:
localhost/old_test/hOme.html
I get this output
localhost/new_test/\${lower:hOme.html}

I've try with every possible function and it's always display in between {}

<rule enabled="true" match-type="wildcard">
    <from>/old_test/**</from>
    <to type="permanent-redirect">/new_test/${lower:Hello World}</to>
</rule>
localhost/new_test/\${lower:Hello World}

I'm using UrlRewriteFilter 3.2 on Red Hat 4.1.0-3 

Is there any possible reason why the functions don't work?

Thanks for the help.
C

Original issue reported on code.google.com by lidadigi...@gmail.com on 22 Sep 2009 at 4:47

GoogleCodeExporter commented 9 years ago
Hello,

I have done further test and I came with this

       <rule enabled="true" match-type="wildcard">
        <from>/old_test/**</from>
        <set name="source">${lower:$1}</set>

        <to type="permanent-redirect">/new_text/%{attribute:source}</to>
    </rule>

If I store the "lowered" string I get the proper answer.

Sorry for the post and thanks.
C

Original comment by lidadigi...@gmail.com on 23 Sep 2009 at 11:15

GoogleCodeExporter commented 9 years ago
Please ask such questions on the mailing list.

Original comment by avl...@gmail.com on 4 Jan 2010 at 6:10