title: WHM mod_rewrite mod_userdir
body: <p>I am facing a similar problem to</p>
  
  <p><a href="https://stackoverflow.com/questions/7661747/problems-with-mod-rewrite-and-mod-userdir">Problems with mod_rewrite and mod_userdir</a></p>
  
  <p>But with WHM and I do not know the best way to start. </p>
  
  <p>mod_rewrite goes to /usr/local/apache/htdocs/ when it should go to the user's userdir file at /home/<em>user</em>/public_html. The exact error is </p>
  
  <pre><code>File does not exist: /usr/local/apache/htdocs/index.php, referer: http://&lt;my ip&gt;/~*user*/default.php
  </code></pre>
  
  <p>I thought about modifying httpd.conf but saw a lot of errors saying re-configuring WHM will erase modifications.</p>
  
  <p>I also looked through the WHM docs and saw the open_basedir tweak: <a href="http://docs.cpanel.net/twiki/bin/view/11_32/WHMDocs/TweakPhp" rel="nofollow noreferrer">http://docs.cpanel.net/twiki/bin/view/11_32/WHMDocs/TweakPhp</a></p>
  
  <p>I thought I would ask first to avoid random troubleshooting as I have live sites on the server.</p>