mod rewrite rule to access other domain directory ?

HI!


i have two accounts on cpanel/whm server. let say a1.com and a2.com .

now i want when some body access http://www.a1.com/index.php,

the mod rewrite should run the index file of a2.com without redirection.

here is what i tried on a1.com .htaccess file but did not worked.

RewriteEngine On
RewriteRule ^index.php$ /home/a2/public_html/index.php [L]

but i gives 404 error

The requested URL /home/a2/public_html/index.php was not found on this server


can any body help ?

 

 

 

 

Top