How to redirect indexed pages that include index.php in the url to the url without it
Posted: Thu Aug 11, 2022 2:04 pm
Hi, I am inheriting a large site that is fully indexed. And all the pages have index.php in the url.
sitename.com/index.php
sitename.com/index.php/nationalnews.html
I know how to remove the index.php by enabling URL rewriting and changing to .htaccess
My question is, is there a way to permanently redirect all traffic from sitename.com/index.php to sitename.com? Including all other urls also, sitename.com/index.php/nationalnews.html to sitename.com/nationalnews.html?
sitename.com/index.php
sitename.com/index.php/nationalnews.html
I know how to remove the index.php by enabling URL rewriting and changing to .htaccess
My question is, is there a way to permanently redirect all traffic from sitename.com/index.php to sitename.com? Including all other urls also, sitename.com/index.php/nationalnews.html to sitename.com/nationalnews.html?