title: Wordpress not working when using Apache virtual hosts
body: <p>I currently use virtual hosts on my computer so that I can manage multiple sites on my computer.  </p>
  
  <p>Currently, I use <strong>c:/vhosts/php</strong> (default localhost) for regular PHP development, <strong>c:/vhosts/BTS</strong> for Wordpress, and <strong>c:/vhosts/cake</strong> for CakePHP development. (see below).</p>
  
  <p>Now when I launch my WAMPP and go to <a href="http://BTS" rel="nofollow noreferrer">http://BTS</a>, it loads the index page but nothing else loads fine.  When trying to click on the links, it links to <a href="http://localhost/xxxxx" rel="nofollow noreferrer">http://localhost/xxxxx</a> instead of <a href="http://BTS/xxxxx" rel="nofollow noreferrer">http://BTS/xxxxx</a>.  What am I missing here?  I don't want the server to access localhost since I'm using localhost for other projects.  Please help.</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  DocumentRoot c:/vhosts/php
  ServerName localhost
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
  DocumentRoot c:/vhosts/BTS
  ServerName BTS
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
  DocumentRoot c:/vhosts/cake
  ServerName cake
  &lt;/VirtualHost&gt;
  </code></pre>