title: .htaccess issue: RewriteBase takes one argument, the base URL of the per-directory context
body: <p>I am using Laravel, and have a problem with accessing parts of my app without appending <code>index.php</code> to the URL. After some research on SO, I gathered that I needed to:</p>
  
  <ol>
  <li>Activate <code>rewrite_mod</code>, </li>
  <li>Set <code>AllowOverride</code> to <code>All</code></li>
  </ol>
  
  <p>Which I have done. Yet after doing all of this, a couple of new problems arise. First I can't get access to the <code>public</code> folder, and I get the following error (when looking into <code>apache2/error.log</code>):</p>
  
  <pre><code> [core:alert] [pid 15557] [client 87.81.146.231:56147] /var/www/data_exchange/laravel/public/.htaccess: RewriteBase takes one argument, the base URL of the per-directory context
  </code></pre>
  
  <p>Here's the <code>.htaccess</code> file</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine ON
      RewriteBase /laravel/  # Redirect Trailing Slashes...
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Here's what the <code>httpd.conf</code> (apache2.conf) looks like, I thought I'd add a new directory to see if it would fix the problem:       </p>
  
  <pre><code>&lt;Directory /var/www/&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
  &lt;/Directory&gt;
  
  
  &lt;Directory /var/www/data_exchange/laravel/public&gt;
          Options Indexes followSymlinks
          allowoverride all
          require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Ideally, I want users to be able to navigate through the app without the need of adding the index.php.</p>