Redirecting with masking backend URL from user

I am redirecting traffic on two different URLs. Able to redirect but unable to mask URL

I want to redirect traffic from http://example.com to http://example1.com and http://example2.com without changing URL at client end so that client could not see the backend URLs.

Qudrath