mod_rewrite capturing domain and tld
- by sameold
I'm using mod_write to rewrite this 
www.variabledomain.variableext
to 
http://my.com/variabledomain.variableext 
Note that variabledomain and variableext are really variable, so I can't hardcode them. 
I'm not an expert at mod_rewrite, but I thought something like would work, but it isn't. Any ideas what I should be doing instead.
RewriteRule ^(.*)\.(.*)\.(.*)$ http://my.com/$2\.$3 [R=301,L]