title: how to avoid changing localhost to domain.com when I push code from local to server
body: <p>I once used CakePhp, and when I push my code from local to server, 
  I have to change something like a href="http://localhost/" on the local environment to <a href="http://domain.com/" rel="nofollow">http://domain.com/</a> everytime I push the code to server, </p>
  
  <p>Later I know I can use  to avoid that.</p>
  
  <p>But I have try that again, this time I do NOT use CakePhp, However I want to do something like  did, can somebody show me how to do it?</p>