title: Redirect a route path in Apache 2.4 except my IP
body: <p>I try to redirect all visit except from my own IP adress to a specific path/url (not file or directory just a route path)like &quot;example.com/my-path&quot; to home page. I have tried a several code in .htaccess file but nothing works.</p>
  <p>I used this code:</p>
  <pre><code>RewriteCond %{REMOTE_ADDR} != 1.2.3.4 (MY IP) 
  RewriteRule /my-path https://example.com
  </code></pre>
  <p>Where I have wrong?</p>