java - redirect doesnt include path -


<rule>     <from>^/asd/(.*)/$</from>     <to type="temporary-redirect">%{context-path}/?asd=$1</to> </rule> 

my website hosted myapp.com/testing , jetty context dev

so myapp.com/testing/dev/

but when try myapp.com/testing/dev/asd/123/

instead of myapp.com/testing/dev/?asd=123

i redirected myapp.com/dev/?asd=123

i 'm using v 4.0 http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html

you have 2 things mucking request.

your rewrite filter @ odds whatever have in front of jetty (hardware or software converting browser (http client) requests myapp.com/testing/dev/ jetty's myapp.com/dev/. jetty isn't aware of /testing/ part of path, rewrite filter cannot add /testing/ piece 302 redirect.

either you'll need make product in front of jetty smart enough rewrite location response header, or you'll need adjust rewrite filter include path information product in front of jetty aware of.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -