I am new to URL re-writing. I have the same question. How can i pass
e.g. Here is my rule
then how can i pass "code=001&name=test" in the actual URL i.e. /
On Nov 6, 7:17 am, Avlesh Singh <
avl...@gmail.com> wrote:
> > Have a problem here, kinda novice in url rewriting. Need a rewriting rule
> > from /oc/TaskStart.do?method=selectTaskMethod&mid=91023909520346476 to
> > /methods/oc/91023909520346476
>
> Are you sure that you want it written that way? Use cases are generally the
> reverse!
>
> Anways,
>
> if your answer is yes -
> <from>/oc/TaskStart.do\?method=selectTaskMethod&mid=(.*)</from>
> <to type="permanent-redirect" last="true">/methods/oc/$1</to>
> Don't forget to turn on the "use-query-string" parameter in the root node.
>
> if reverse if what you wanted to do -
> <from>/methods/oc/(.*)</from>
> <to type="permanent-redirect"
> last="true">/oc/TaskStart.do\?method=selectTaskMethod&mid=$1</to>
>
> Cheers
> Avlesh
>