title: .htaccess rewrite to another port
body: <p>I have a joomla setup in my /home/joomla directory.
  I installed both Apache and Lighttpd
  i have configured Lighttpd to proxy only static files, and lighttpd is listening on port 81.
  Now what i want is</p>
  
  <p>whenever request for static files are made, instead of going to </p>
  
  <blockquote>
    <p>www.domain.com/whatever/bg.jpg</p>
  </blockquote>
  
  <p>it should redirect to </p>
  
  <blockquote>
    <p>domain.com:81/whatever/bg.jpg</p>
  </blockquote>
  
  <p>using .htaccess</p>
  
  <p>also notice that www.domain.com changed to domain.com</p>
  
  <p>please please i need a quick help for it :)</p>