I am developing an application in CodeIgniter. I got some issues from SEO expert. One issue is URL Canonical issue.
For Example, I can access the same content by multiple URLs.
https://seocompany.us.com/portfolio
https://seocompany.us.com/portfolio/
https://seocompany.us.com/index.php/portfolio/
https://seocompany.us.com/index.php/portfolio
How to redirect all these URLs to only 1 URL.
2
Answers
At end of
.htaccess
file add this. (didn’t check)a 301 rewrite would also work for directing them
301 — https://seocompany.us.com/index.php/portfolio/ => https://seocompany.us.com/portfolio
and so on