Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This webpage has a redirect loop #174

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 1 comment
Open

This webpage has a redirect loop #174

GoogleCodeExporter opened this issue Mar 17, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant