title: Make web root folder a sub-folder with .htaccess?
body: <p>I'm working on a pretty complex project, so I'd like to go with a file/folder structure that makes sense.</p>
  
  <p><strong>The folder/file structure I'd like to have is:</strong></p>
  
  <pre><code>.htaccess
  /php/
  /assets/
  </code></pre>
  
  <p><strong>I'd like to have the web pages that people will access in:</strong></p>
  
  <pre><code>/php/views/pages/
  </code></pre>
  
  <p>I'm wondering if it's possible to use just <code>.htaccess</code> to set <code>/php/views/pages</code> as the "viewable root", so that for example, when people visit <code>http://mydomain.com/</code> they'll be viewing <code>http://mydomain.com/php/views/pages/index.php</code>, and if so, how would I go about doing it?</p>
  
  <p>Also, is it possible to canonicalize all access to <code>/php/views/pages</code> using <code>.htaccess</code> and a 301 redirect to stop multiple links being indexed in search engines?</p>