title: .htaccess URL Rewriting for Folders
body: <p>I have an app located at <code>example.com/app</code> with <code>signin.php</code>, <code>signup.php</code>, <code>index.php</code>, etc inside the folder.</p>
  
  <p>Now the client wants to have the app accessible at <code>example.com/signin.php</code> and so on, but I want to keep the app files inside the app folder for better management.</p>
  
  <p>I tried using this, and it works, but then I can't access the files that I already had in the root directory:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.example\.com$
  RewriteCond %{REQUEST_URI} !^/app/
  RewriteRule (.*) /app/$1
  </code></pre>
  
  <p>Is there a way to exclude pages in the root directory from being affected? Or is there a better way to do this?</p>