It should first check if the first /$1/ is a directory and if not add a directory before it.
E.G:
each of this URLs:
pizza
pizza/olives
pasta
pasta/lasagna
should go to:
menu/pizza
menu/pizza/olives
menu/pasta
menu/pasta/lasagna
Accordingly. How is this done?
Try: