title: access a folder in 'public' directory of laravel
body: <p>How can I access a folder placed in the <code>public</code> directory of my default laravel installation. This question is for both - <code>testing</code> as well as <code>live</code> purpose.</p>
  
  <p><strong>While Testing-</strong></p>
  
  <p>I am testing on windows using XAMPP's apache http server. I have placed my app's root folder in the <code>htdocs</code> folder of XAMPP. Thus, when I try to access a folder in public directory, <code>'localhost/myappname/public/blog'</code> it redirects me to <code>'localhost/blog'</code>.</p>
  
  <p>I don't want this behavior. <em>I want it to pick up the <code>'index.php'</code> file present at <code>'localhost/myappname/public/blog/'</code> location</em>. But it doesn't do so.</p>
  
  <p><strong>While Live-</strong></p>
  
  <p>I have my site live on ubuntu with apache http server. When I try to access <code>'mysitename.com/blog'</code> in the <em>firefox</em>, it <em>gives me this error</em> -</p>
  
  <pre><code>Firefox has detected that the server is redirecting the request for this 
  address in a way that will never complete.
  </code></pre>
  
  <p>I have no hint about what's wrong. I have tried spending two days working with laravel's default <code>.htaccess</code> file(in <code>public</code> folder) and apache <code>httpd.conf</code> but still not able to resolve it. Have searched a lot over stackoverflow and google but still no clue about where I am wrong. Please guide me.</p>
  
  <p><strong>Added:</strong></p>
  
  <p>The content of <code>.htaccess</code> file is -</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_negotiation.c&gt;
      Options -MultiViews
  &lt;/IfModule&gt;
  
  RewriteEngine On
  
  # Redirect Trailing Slashes...
  RewriteRule ^(.*)/$ /$1 [L,R=301]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  </code></pre>
  
  <p></p>