I have multiple php files which I had to convert to fixed html. All the php files are named in this way index.php?menu=XX (where XX is number from 1 to 80). I have named all my html files as indexXX.html (where XX is number from 1 to 80). But now I cannot find a way to write a redirect rule that would permanently redirect from (example) index.php?menu=17 to index17.html.
P.S. I've also tried to manually redirect as such (temporary redirect, since I'm testing):
Redirect 302 index.php?menu=6 index6.html
but I get a 500 internal error. If I use a slash before the filename then there's no error but I get a 404 saying index.php cannot be found.