jersy / urlrewritefilter

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

This webpage has a redirect loop #174

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is my config

<urlrewrite use-query-string="true">

        <!--  Redirect -->
            <rule enabled="true">
           <from>^/user_information.jsp\?username=([a-z0-9A-Z]+)&amp;id_card=([a-z0-9A-Z]+)&amp;t=([a-z0-9A-Z]+)&amp;flag=([a-z0-9A-Z-_]+)&amp;type=([a-z0-9A-Z]+)&amp;host=([^/]*)&amp;ses=([a-z0-9A-Z]+)$</from>
           <to type="redirect" last="true">/4766684466771A2586CC11CF423005DF_$1_$2_$3_$4_$5_$6_$7</to>
        </rule>

</urlrewrite>

Test on chrome and get error
"This webpage has a redirect loop"

Please help me.
Thanks so much.

Original issue reported on code.google.com by hienlon...@gmail.com on 5 Nov 2014 at 3:49

GoogleCodeExporter commented 9 years ago
sorry my full config is
<urlrewrite use-query-string="true">

        <!--  Redirect -->
            <rule enabled="true">
           <from>^/user_information.jsp\?username=([a-z0-9A-Z]+)&id_card=([a-z0-9A-Z]+)&t=([a-z0-9A-Z]+)&flag=([a-z0-9A-Z-_]+)&type=([a-z0-9A-Z]+)&host=([^/]*)&ses=([a-z0-9A-Z]+)$</from>
           <to type="redirect" last="true">/4766684466771A2586CC11CF423005DF_$1_$2_$3_$4_$5_$6_$7</to>
        </rule>

    <rule enabled="true"> 
     <from>^/4766684466771A2586CC11CF423005DF_([a-z0-9A-Z]+)_([a-z0-9A-Z]+)_([a-z0-9A-Z]+)_([a-z0-9A-Z-_]+)_([a-z0-9A-Z]+)_([^_]*)_([a-z0-9A-Z]+)$</from>
    <to last="true">/user_information.jsp?username=$1&id_card=$2&t=$3&flag=$4&type=$5&host=$6&ses=$7</to>
    </rule> 

</urlrewrite>

Original comment by hienlon...@gmail.com on 5 Nov 2014 at 3:51