I have incoming url http://www.example.com/index.html?id=1234
I have database WORDS with 2 columns: 'id' and 'url'
I need to 301 redirect matching the id parameter in url (1234) to corresponding URL, such as:
http:// www.example.com/index.html?id=1234 becomes http:// www.redirectedurl.com
I tried something similar as what is explained here I think the correct way is having a simple .htaccess code that uses a php file to match ids with urls in database but i don't know where to start.
Thanks for your help!