Rewrite URL multipath

0

Hi all,

I need help for rule rewrite.

I need rewrite url home / to /xxx/yyy/zzz

My rule : 

Rule type : Modify URL
Pattern : ^/$
Replacement /xxx/yyy/zzz

When testing rule, just rewrite /xxx/ not fully path.

Sorry for my english.

 

 

2 comments

Avatar
0
Tony Vaughan

Hello Romain,

the syntax looks correct

I tested on firmware 7.2-42 using the following rule

Rule type         Modify URL
Match String    /^\/$/
Modified URL   /newpage/subfolder/xyz

I was able to get the correct response,
can you test with the above rule?
if it still doesn't work then there may be a conflict with existing rules on the virtual service or there could be rules on the real server modifying the url

Avatar
0
romain.drouche

Hello

Thanks for your reply, I just tested it still does not work.

We are in 7.2.40 can be updated Kemp.

Nice day