title: How to set document root to be a subdirectory using .htaccess and not VHost
body: <p>On my local machine the following works perfect:</p>
  
  <pre><code> &lt;VirtualHost *:80&gt;
         ##ServerAdmin postmaster@dummy-host2.localhost
         DocumentRoot "C:/xampp/htdocs/website_1"
         ServerName testpage.com/website_1
         ##ServerAlias www.recruitement.localhost
         ##ErrorLog "logs/dummy-host2.localhost-error.log"
         ##CustomLog "logs/dummy-host2.localhost-access.log" combined
   &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Howerver Im hosting my website to hosting company called <strong>justhost.com</strong> and they do not allow me to modify <strong>httpd-vhosts.conf</strong> or <strong>httpd.conf</strong>. Now my entire site is coded so that files under website_1 reference to other files under website_1 using simple slash "/" meaning website_1 is treated as document root. This works perfectly on local machine but when uploaded to host it gives me server errors because cant find the files since its trying to locate those files in <strong>public_html</strong></p>
  
  <p>For example:</p>
  
  <pre><code>  public_html
        - website_1
           - script.php
           - style.css
  </code></pre>
  
  <p>inside my <strong>script.php</strong>:</p>
  
  <pre><code>&lt;a href="/style.css"&gt;See My Style&lt;/a&gt;
  </code></pre>
  
  <p>this works good on local machine but on host it fails since it tries to locate style.css under <strong>public_html</strong> and not <strong>public_html/website_1</strong></p>
  
  <p>Is there a way to have multiple document roots without using VHosts? Like using .htaccess or something else. Please I want to try to avoid rewriting the code as much as possible since its around 10 thousands lines of code.</p>