title: htaccess rewrite to secure folder path
body: <p>I have an application in a folder that I want to keep hidden. Instead I want to be able to access the folder from a secret path, for example:</p>
  
  <p>Current path: example.com/myfolder</p>
  
  <p>Change path to myfolder.example.com</p>
  
  <p>When someone visits example.com/myfolder I just want it to return page not found.</p>
  
  <p>I then want to make the new path accessible only from my IP. Have tried various methods but having no success. Any suggestions/examples would be appreciated.</p>
  
  <p>Thanks in advance.</p>