私は url を持っています: https://example.com/index.php?categoryID=127/index.php
htaccess を書いてください:
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 を使用する必要がありますか、それともルートの index.php URL を php の dint で変更する必要がありますか? どうすればそれができますか?