title: php .htaccess rewrite with new cpanel account
body: <p>I have the following in my .htaccess file, which I do often for cleaner URL's.  There are pro's and cons to this I know and I think I've found a con.  </p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  Options All -Indexes
  </code></pre>
  
  <p>I've up a new cPanel account for this website so the URL looks like this:</p>
  
  <pre><code>http://www.example.com/~newuser/
  </code></pre>
  
  <p>...where example.com is my reseller account and newuser is my client.</p>
  
  <p>The site loads fine but when I click a link <code>http://www.example.com/~newuser/about</code> I get the following error:</p>
  
  <blockquote>
    <p>The requested URL
    /home/newuser/public_html/about.php
    was not found on this server.</p>
  </blockquote>
  
  <p>The problem is, that's exactly the file I want it to display and that is the document root. Any ideas?</p>
  
  <p>Thanks in advance.</p>