title: Forward to local address when in local network?
body: <p>I want to set up my apache2 config so that a user is redirected from the public to the local IP of a website if he is in this local network. Basically, if someone is visiting the website of my raspberry pi (which is at my home) while being at my home, he should be redirected to the local IP.
  I want to do this with mod_rewrite, or is there an other, better way?</p>