Redurect url to lowercase

Hello. How to redirect in haproxy url like www.example.com/tEStwww.example.com/test. As I can see only regsub can help me?