How to separate "path" in loadbalancer

Hi there.
Is it possible to change url inside LB rules?
For example
from Loadbalancer.com/X/file.txt to Loadbalancer.com/file.txt. In my case X is a service id, but I need that service to receive path like /file.txt not /X/file.txt