looking for some mod_rewrite help

I purchaed a domain name a while ago that has ended up being longer than I like to type in. In any event I just purchased another domain a bit shorter and I currently have quite a few sites hosted on subdomain.longdomain.com. These sites were added via DirectAdmin so each subdomain has it's own httpd.conf entry as well as it's own named file. I was thinking I could use a mod_rewrite rule to redirect subdomain.shortdomain.com to subdomain.longdomain.com without having to write out every subdomain. I believe it can work on a wildcard system where traffic going to *.shortdomain.com gets sent right to *.longdomain.com.

Anybody have a nice mod_rewrite ruleset?

 

 

 

 

Top