URL redirection in mac osx yosemite <p>I need to redirect a particular url to my localhost in mac osx-yosemite. I'm able to do the port forwarding using the following. </p> <pre><code>echo " rdr pass inet proto tcp from any to any port 80 -&gt; 127.0.0.1 port 8080 rdr pass inet proto tcp from any to any port 443 -&gt; 127.0.0.1 port 8443 " | sudo pfctl -ef - </code></pre> <p>But can't figure out how to make a particular URL to be redirected to my localhost. Thanks for the help </p>