I'm trying to configure apache to where if the client makes a request to my IP address they are redirected to my hostname and away from the IP. This is what I've tried that doesn't work:
RewriteRule ^my.ip.here/(.*) http://www.myurl.com/
What's the best practice to achieve what I'm trying to do?