troubleshooting Question

.htaccess rewrite

Avatar of cortdev
cortdev asked on
Apache Web ServerPHPWeb Development
4 Comments1 Solution328 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
syedyounus

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros