Question : .htaccess rewrite

Hello guys, I'm trying to redirect some pages which address are:

example.html?id=7
example.html?id=14
example.html?id=17
example.html?id=6

For some reason because the extension is .html the redirect does not work with the complete string so I redirected example.html to index.php and it worked but now here is the problem:

If you go to  example.html?id=7 you get index.php?id=7 or
if you go to example.html?id=17 you get index.php?id=17.

My question is:
-How can I redirect example.html?id=7 to /example/address and make it work.
-If that is not possible how can I make example.html?id=7 go to index.php and loose all of the extra strings.

Answer : .htaccess rewrite

By adding this code in .htaccess file

RewriteRule ^example.html$ http://www.yourwebsitename.com/index.php? [L,R=301]

example.html?id=7
example.html?id=14
example.html?id=17
example.html?id=6          ---- all these pages will redirect to  index.php of your website without the extra string.

Random Solutions  
 
programming4us programming4us