title: Pretty urls not redirecting in Yii2
body: <p>I have an action name cart in site controller and I have used pretty URL so my URL is </p>
  
  <pre><code>WWW.test.com/cart
  </code></pre>
  
  <p>But I want to redirect if someone enter <code>WWW.test.com/cart/</code>, 
  then it should be redirected to <code>WWW.test.com/cart</code>.
  I don't have cart controller.</p>