title: Wordpress 404 without trailing slash
body: <p>I know this has probably been answered as it seems a common question but I am having problems getting the solutions around working for me.</p>
  
  <p>I have a wordpress site in a sub directory of another site. when i try and call <a href="http://site.com/blog" rel="nofollow">http://site.com/blog</a> i get redirected and a 404 error but when i call <a href="http://site.com/blog/" rel="nofollow">http://site.com/blog/</a> the page renders as expected.</p>
  
  <p>The solution that keeps coming up seems to be </p>
  
  <pre><code># and does not end with a slash
  RewriteCond %{REQUEST_URI} !/$
  # then add a trailing slash and redirect
  RewriteRule (.*) $1/ [R=301,L]
  </code></pre>
  
  <p>but every time i request the page without the trailing slash i get redirected to <a href="http://site.com/app/webroot/blog" rel="nofollow">http://site.com/app/webroot/blog</a></p>
  
  <p>the subfolder the blog has been installed is within the webroot of a cakephp app which i think might have something to do with it?</p>