quote:
Originally posted by Dempsey
quote:
Originally posted by alexp2_ad
code:
RewriteCond %{QUERY_STRING} ^id=pack&id2=([0-9]+)$
RewriteRule ^$ /soundpack.php [R]
Is a lot closer but still not close enough I'm afraid. You can't match a query string question mark by using \? it treats it as a literal question mark in the file name.
You could just redirect using php could you not?
oh ok, thanks for the help
I could just do it using php yea, but mod_rewrite would have been my preferred method as the index.php is now the MyBB portal page, meaning I'd have to update it everytime I update MyBB.
Well, at least with that one I gave you you could redirect using the php in soundpack.php
But I'll see if I can dig up something better, it must be possible.
EDIT: I got it!
code:
RewriteCond %{QUERY_STRING} ^id=pack&id2=([0-9]+)$
RewriteRule ^$ /soundpack.php?id=%1 [R,NE]