Hello @Karuna P ,
Thanks for reaching azure Q and A platform.
Could you please try the below re-write rule?
Source Pattern: /test/ Destination: /test1/ Preserve Unmatched Path: Yes
Please do let us know if this did not work.
Regards, Priya Kumar