second domain to subdir

I have a domain1.com
Now i want domain2.com to goto domain1.com
I know this can be done with mod_rewrite aince it works for subdomains the same.
Only i'm not sure how to use mod_rewrite, since it's a bit different then with subdomains.
Can someone help me with this?

 

 

 

 

Top