title: Xampp Virtual Host for sub directory
body: <h2>Question</h2>
  
  <p>I would like to map</p>
  
  <pre><code>www.mydomain.com/some/url
  </code></pre>
  
  <p>to</p>
  
  <pre><code>C:/xampp/htdocs/some/dir
  </code></pre>
  
  <h2>What I've got</h2>
  
  <ul>
  <li>Xampp</li>
  <li>Wordpress</li>
  </ul>
  
  <p><strong>htaccess</strong></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /some/path/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /some/path/index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>Hosts file</strong></p>
  
  <pre><code>127.0.0.1 www.mydomain.com
  </code></pre>
  
  <p><strong>httpd-vhosts.conf</strong> (included in <code>httpd.conf</code>)</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "C:/xampp/htdocs/someDir/"
      ServerName mydomain.com/some/path
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>additional info (httpd.conf)</strong></p>
  
  <pre><code>DocumentRoot "C:/xampp/htdocs"
  
  &lt;Directory "C:/xampp/htdocs"&gt;
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <h2>Current Outcome</h2>
  
  <p>500 Internal Server Error error log shows</p>
  
  <pre><code>Request exceeded the limit of 10 internal redirects due to probable configuration error. 
  </code></pre>