- Open Terminal.app
- Type:
sudo vim /etc/hosts - Hit return
- Type your password when prompted for it
- Press i (this will put in into insertion mode)
- Scroll down to a blank line
- Type in the ip and domain for the site you want to redirect using the following format: (i.e.
127.0.0.1 blueoceanlabs.com) - Press escape
- Type
:wq(this saves and quit vim) - Type:
dscacheutil -flushcache - Hit return
- Test the domain in your browser, should point to new server