How should I make the change?
You would remove the mod_rewrite from the .htaccess file and put the mod_proxy code in your .com's httpd.conf file (probably in the example.com <VirtualHost> if one exists).
I cannot do it using php.ini right?
No, you cannot.