I have url: https://example.com/index.php?categoryID=127/index.php
Write htacces:
RewriteRule ^index\.php(.*)$ /$1 [R=301,L]
RewriteRule ^(.*)/index\.php(.*)$ /$1$2 [R=301,L]
And I got https://example.com/?categoryID=127/index.php
How can I remove the index.php after the variable? Must use htaccess or need to change the root index.php url by dint of php? How can do that?