title: mod_rewrite remove trailing slash not working in Laravel
body: <p>I have the following code setup in my htaccess file for my Laravel 3 installation:</p>
  
  <pre><code># Removes trailing slashes (prevents SEO duplicate content issues)
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)/$ $1 [L,R=301]
  
  # Enforce www
  RewriteCond %{HTTP_HOST} ^([0-9a-z-]+)\.([0-9a-z-]+)$ [NC]
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  
  # Remove index.php from base URL
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>Which looks all well and good untill the first ReWrite condition is accessed.</p>
  
  <p>Navagating to this url:</p>
  
  <pre><code>/information/
  </code></pre>
  
  <p>Redirects me to:</p>
  
  <pre><code>/home/xxx/Dropbox/Development/laravel/httpdocs/information
  </code></pre>
  
  <p>So the trailing slash is being removed, but it redirecting to the abolsute URL. </p>
  
  <p>Why is it doing that? How do I fix it? </p>
  
  <p>Thanks :)</p>