I am using this code to remove index.php for opencart. However, there are other addresses:
/index.php?route=account/register
Of course the code starts to delete index.php everywhere. My goal is to remove it (index.php) for SEO because of duplicate content.
I use this
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://website.com/$1 [R=301,L]