Forums Register Login

Tuckey UrlRewrite Filter Unable to redirect hindi data through query string

+Pie Number of slices to send: Send
Hi,
I was trying to redirect from one URL to other using the following Urlrewrite Rule :-

<urlrewrite>
<!-- First Rule starts -->
<rule>
<from>listitems-([a-zA-Z0-9\u0900-\u097F-]+)-([\d]+)-([\d]+)$</from>
<to last="true" type="redirect">list-items-$1-$2-$3</to>
</rule>
<!-- First Rule ends -->

<!-- Second Rule starts -->
<rule>
<from>list-items-([a-zA-Z0-9\u0900-\u097F-]+)-([\d]+)-([\d]+)$</from>
<to last="true">myapp/listitems.page?name=$1&id=$2&locale=$3</to>
</rule>
<!-- Second Rule ends -->
</urlrewrite>

When Hindi String is being passed through first parameter of first rule then it redirect Junk String(i.e ???) to the second rule instead of it.
Whereas Direct using the Second rule is working perfect.

Thanks in Advace
eat bricks! HA! And here's another one! And a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1186 times.
Similar Threads
Seemingly simple regex making my head hurt
Regular Expression
Iterating through a String.
How to write regular expression to skip a specific charaters in word
parsing data and storing in the xml
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:03:14.