title: Canonical URL issue on CodeIgniter application
body: <p>I am developing an application in CodeIgniter. I got some issues from SEO expert. One issue is URL Canonical issue.</p>
  
  <p>For Example, I can access the same content by multiple URLs.</p>
  
  <p><a href="https://seocompany.us.com/portfolio" rel="nofollow noreferrer">https://seocompany.us.com/portfolio</a></p>
  
  <p><a href="https://seocompany.us.com/portfolio/" rel="nofollow noreferrer">https://seocompany.us.com/portfolio/</a></p>
  
  <p><a href="https://seocompany.us.com/index.php/portfolio/" rel="nofollow noreferrer">https://seocompany.us.com/index.php/portfolio/</a></p>
  
  <p><a href="https://seocompany.us.com/index.php/portfolio" rel="nofollow noreferrer">https://seocompany.us.com/index.php/portfolio</a></p>
  
  <p>How to redirect all these URLs to only 1 URL.</p>
  
  <p><a href="https://seocompany.us.com/portfolio" rel="nofollow noreferrer">https://seocompany.us.com/portfolio</a></p>