UrlRewriteFilter Direct to https

Posted by adi on Stack Overflow See other posts from Stack Overflow or by adi
Published on 2010-08-02T04:38:21Z Indexed on 2012/03/27 17:29 UTC
Read the original article Hit count: 222

Filed under:
|

I am using UrlRewriteFilter to redirect to SSL. I am running Glassfishv2.

My rule looks something like this now. It's in my urlrewrite.xml in WEB-INF of my war folder. Is there any other glassfish setting that needs to be set?

<rule>
        <condition name="host" operator="notequal">https://abc.def.com</condition>
     <condition name="host" operator="notequal">^$</condition>
     <from>^/(.*)</from>
     <to type="permanent-redirect" last="true">https://abc.def.com/ghi/$1</to>
    </rule>

But FF keeps saying that the URL redirect rule is in a way that it will never complete. I am not exactly sure whats happening here. any ideas?

© Stack Overflow or respective owner

Related posts about glassfish

Related posts about url-rewriting