title: Add trailing slash if url contains keyword
body: <p>I've tried several versions of trailing slash code but none of them are working for me. I want a trailing slash to be added only when url contains a keyword <strong>news</strong>, so</p>
  
  <pre><code>domain.com/news
  domain.com/news/category/foo
  domain.com/news/archive/august-2018
  </code></pre>
  
  <p>should trigger it to add a slash. I have this right now</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^/(news.*)$
  RewriteRule ^/news(.*[^/])$ %{REQUEST_URI}/ [R=301,L]
  </code></pre>