title: End my urls with trailing slash (/) or not? And how do I go about it doing this with codeigniter
body: <p>I am trying to figure out which is most appropriate.  From the articles I have read, it seems best to end url's with a trailing slash.</p>
  <p>So instead of:
  <a href="http://example.url/article" rel="nofollow noreferrer">http://example.url/article</a></p>
  <p>It would read:
  <a href="http://example.url/article/" rel="nofollow noreferrer">http://example.url/article/</a></p>
  <p>First I adjusted my htaccess to force a trailing slash.</p>
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI}      ^.+[^/]$
  RewriteRule ^(.+)$              $1/   
  </code></pre>
  <p>Then I started implementing this in my links and I thought if I did anchor('article/','article') it would work, but it seems that this function strips the trailing slash.</p>
  <p>To get around this I changed the config file to have $config['url_suffix'] = '/'.  Which worked <em>mostly</em> fine - except I have a document area on my site with pdf's and such. So the links created there would turn out like <a href="http://example.url/documents/doc1.pdf/" rel="nofollow noreferrer">http://example.url/documents/doc1.pdf/</a> . This of course does not work.</p>
  <p>What do you think my solution is here? I guess I could go back to any page I referenced documents or files in and adjust them to not use the anchor function, but I feel like there should be an easier way.</p>