Hello all,

I have a URL that I would like to permanently redirect.  The original is:

http://localhost/confirm/?c=ZK2G372GLJBMGQ7MVVX2LJW7

and I want to redirect it to

http://localhost/account/confirm/?c=ZK2G372GLJBMGQ7MVVX2LJW7

In my resin.conf file, I have this code which does not work:

  <server>
    <rewrite-dispatch>
      <moved-permanently regexp="^/confirm/" target="/account/confirm/"/>
    </rewrite-dispatch>
...
  </server>

The result is that my application still gets the request for /confirm.
 I tried adjusting it to this (dropping the ^ character):

  <server>
    <rewrite-dispatch>
      <moved-permanently regexp="/confirm/" target="/account/confirm/"/>
    </rewrite-dispatch>
...
  </server>

In this case I get a circular redirect, a neverending URL like

http://localhost/account/account/account/account/ ...
/account/account/confirm/?c=ZK2G372GLJBMGQ7MVVX2LJW7

where the /confirm/ is replaced by /account/confirm/, indefinitely,
until the browser gives up.  This is what I would expect.  But I
haven't any idea why the first one is wrong.  Surely I am missing
something very simple... Any help much appreciated, even a log level
that might shed light on this (I tried some work with this but wasn't
able to find any useful output).

Thanks,
Rachel


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to