我有网址:https://example.com/index.php?categoryID=127/index.php
写htacces:
RewriteRule ^index\.php(.*)$ /$1 [R=301,L]
RewriteRule ^(.*)/index\.php(.*)$ /$1$2 [R=301,L]
我得到了https://example.com/?categoryID=127/index.php
如何在变量后删除index.php?必须使用htaccess或需要通过php的dint更改root index.php url? 怎么办?