title: htaccess mod_rewrite hostname
body: <p>How can i rewrite the domain url to a specific domain name if it didnt match it ..</p>
  
  <p>Let's say i want it to only match example.com
  and the visitor came from server ip (http://127.0.0.1/something/else) OR came from another domain (http://domain.com/something/else) <br></p>
  
  <p>how can i rewrite the domain name and keep all the other parameters, just domain name to example.com ( result should be : <a href="http://example.com/somthing/else" rel="nofollow">http://example.com/somthing/else</a> )</p>