I have urls that look like http://WEBSITE.com/?page_id=53?&nid=3104&lid=3100
As you can guess it is an ugly wordpress site, search function pulling up a result with id nid=3104 and lid=3100 . Both numbers are necessary.
I would rather URLs look like http://WEBSITE.com/Chicago-Shelter-name or http://WEBSITE.com/shelter/Chicago-Shelter-name
How can I get an .htaccess file to read the search result from a PHP script (that will pull if from SQL using the NID and LID numbers) and when the name comes back as "Chicago Shelter name" rewrite the url http://WEBSITE.com/Chicago-Shelter-name
http://WEBSITE.com/?page_id=53?&nid=3104&lid=3100, simply catch that in your index.php file and redirect the user with a "301 Moved Permanently" to the pretty URL'd page.