RedirectMatch
I'm trying to gethttp://www.domain.com/cgi-bin/file.cgi?s=file.zip&v=1.0
to redirect to
http://www.domain.com/subdir/1.0/file.html
So far I have this:
RedirectMatch 301 ^(.*)cgi-bin/file.cgi?s=(.*)&v=(.*)$ $1subdir/$2/$3
Even if the code worked, it wouldn't change the .zip to .html, so I need help with that too. The original file extension won't always be .zip, but it will be three characters. The line is in the .htaccess file in the home html directory. My other RedirectMatch lines are working.