title: Wampserver not checking root subfolders //Magento site
body: <p><strong>Edit:</strong> looks like it was the port that was the fault. changed port 3333 to 80 and it worked like a charm.</p>
  
  <p>Heyo, I just started using Wamp with no experience to set up a local development environment and have some trouble with loading pages except the one in root directory.</p>
  
  <p>Here's what I get:</p>
  
  <p><a href="https://i.stack.imgur.com/HTX9e.png" rel="nofollow noreferrer">Failed loading attempt</a></p>
  
  <p>If I try to navigate through the links on the site I get Page not found.</p>
  
  <p>I've set up the <strong>httpd.vhosts.conf</strong> file as such:</p>
  
  <pre class="lang-css prettyprint-override"><code># Virtual Hosts
  #
  
  &lt;VirtualHost *:3333&gt;
      ServerName localhost
      DocumentRoot c:/wamp64/www
      &lt;Directory  "c:/wamp64/www/"&gt;
          Options +Indexes +Includes +FollowSymLinks +MultiViews
          AllowOverride All
          Require local
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  #
  
  
  &lt;VirtualHost *:3333&gt;
      ServerName server1.dev
      DocumentRoot "c:/wamp64/www/server1.dev/htdocs"
      &lt;Directory  "c:/wamp64/www/server1.dev/htdocs/"&gt;
          Options +Indexes +Includes +FollowSymLinks +MultiViews
          AllowOverride All
          Require local
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost *:3333&gt;
      ServerName server2.dev
      DocumentRoot "c:/wamp64/www/server2.dev/htdocs"
      &lt;Directory  "c:/wamp64/www/server2.dev/htdocs/"&gt;
          Options +Indexes +Includes +FollowSymLinks +MultiViews
          AllowOverride All
          Require local
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  
  
  <p>Now I've got two servers and server1 is working perfectly fine while server2 does not, both have subfolders which contain css and more pages. <strong>Server2</strong> is a <strong>magento</strong> site with large database while server1 is a normal site with no database.</p>
  
  <p>I've set up the core_config_data like:</p>
  
  <p><a href="https://i.stack.imgur.com/sXvR8.png" rel="nofollow noreferrer">core_config_data</a></p>
  
  <p>I don't know if I should add the port in but it didn't change anything without it. It also doesn't add the port when looking for the files or when I click through the links on the startpage.</p>
  
  <p><strong>Expected:</strong>
  <a href="http://server2.dev:3333/media/css/style.css" rel="nofollow noreferrer">http://server2.dev:3333/media/css/style.css</a></p>
  
  <p><strong>Get:</strong>
  <a href="http://server2.dev/media/css/style.css" rel="nofollow noreferrer">http://server2.dev/media/css/style.css</a></p>
  
  <p>My local.xml:</p>
  
  <pre class="lang-css prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
      &lt;global&gt;
          &lt;install&gt;
              &lt;date&gt;&lt;![CDATA[*removed*]]&gt;&lt;/date&gt;
          &lt;/install&gt;
          &lt;crypt&gt;
              &lt;key&gt;&lt;![CDATA[*removed*]]&gt;&lt;/key&gt;
          &lt;/crypt&gt;
          &lt;disable_local_modules&gt;false&lt;/disable_local_modules&gt;
          &lt;resources&gt;
              &lt;db&gt;
                  &lt;table_prefix&gt;&lt;![CDATA[]]&gt;&lt;/table_prefix&gt;
              &lt;/db&gt;
              &lt;default_setup&gt;
                  &lt;connection&gt;
                      &lt;host&gt;&lt;![CDATA[server2.dev:3333]]&gt;&lt;/host&gt;
                      &lt;username&gt;&lt;![CDATA[*removed*]]&gt;&lt;/username&gt;
                      &lt;password&gt;&lt;![CDATA[*removed*]]&gt;&lt;/password&gt;
                      &lt;dbname&gt;&lt;![CDATA[*removed*]]&gt;&lt;/dbname&gt;
                      &lt;initStatements&gt;&lt;![CDATA[SET NAMES utf8]]&gt;&lt;/initStatements&gt;
                      &lt;model&gt;&lt;![CDATA[mysql4]]&gt;&lt;/model&gt;
                      &lt;type&gt;&lt;![CDATA[pdo_mysql]]&gt;&lt;/type&gt;
                      &lt;pdoType&gt;&lt;![CDATA[]]&gt;&lt;/pdoType&gt;
                      &lt;active&gt;1&lt;/active&gt;
                  &lt;/connection&gt;
              &lt;/default_setup&gt;
          &lt;/resources&gt;
          &lt;session_save&gt;&lt;![CDATA[files]]&gt;&lt;/session_save&gt;
      &lt;/global&gt;
      &lt;admin&gt;
          &lt;routers&gt;
              &lt;adminhtml&gt;
                  &lt;args&gt;
                      &lt;frontName&gt;&lt;![CDATA[admin]]&gt;&lt;/frontName&gt;
                  &lt;/args&gt;
              &lt;/adminhtml&gt;
          &lt;/routers&gt;
      &lt;/admin&gt;
  &lt;/config&gt;
  </code></pre>