title: .htaccess same url with or without /
body: <p>I am doing a painful rewrite of many urls on a website I am currently working on, but I have noticed a small problem:</p>
  
  <pre><code>RewriteRule ^domains/transfer$ ./cart.php?gid=11 [L,NC]
  </code></pre>
  
  <p>This line with navigate if I go to:</p>
  
  <pre><code>http://my-site/domains/transfer
  </code></pre>
  
  <p>But it won't work with a trailing /:</p>
  
  <pre><code>http://my-site/domains/transfer/
  </code></pre>
  
  <p>Is there a way I can change the RewriteCode to take either argument and go to the same page. It seems wasteful to have the same line twice to include a '/'</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Cheers</p>