I have dynamically created image links coming to my index.html page. basically they look like:
http://catdeoderant.com/index.html?catpart=view&catimage=13
How do I use .htaccess to redirect these links to:
http://catdeoderant.com/stinkycats/gallery.php
I need it where when you click on an image the redirect happens. I also need the variables to be passed to the redirected page. The first variable will always be =view, but the second could be any number.
One more thing, since it’s an index.html page, any link to index.html with no variables should not get redirected.
Thanks all, and I do love cats, but sometimes they do stink!
Use the following rule:
Edited on advice from LazyOne.
Expected result:
I never used %{QUERY_STRING} before but it should be close to what you are trying to do according to this documentation http://fantomaster.com/faarticles/rewritingurls.txt