title: Add Trailing Slash .htaccess
body: <p>I'm trying to get the following effect (using this local file <code>http://localhost/[company_name]/[project_name]/.htaccess</code>):</p>
  
  <pre><code>http://localhost/[company_name]/[project_name]/page-1 (adds slash)
  http://localhost/[company_name]/[project_name]/page-1/ (does nothing)
  http://localhost/[company_name]/[project_name]/page-1/subpage-1 (adds slash)
  http://www.example.com/page-1 (adds slash)&lt;br /&gt;
  http://www.example.com/page-1/ (does nothing)
  etc.
  </code></pre>
  
  <p>The thing I want to accomplish is that this .htaccess doesn't need the path <code>http://localhost/[company_name]/[project_name]/</code> anymore so that I don't have to edit this each time it's been uploaded.</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
  </code></pre>
  
  <p>I found the code above here: <a href="https://stackoverflow.com/questions/1668096/add-trailing-slash-to-urls">Add Trailing Slash to URLs</a>, but it only makes it possible to use the HOST dynamically and discards the path. Does someone a solution to accomplish this effect?</p>