I have tried this in both the root directory .htaccess and a .htaccess file in the /mdb directory that the showdr.php file is in and cant get it to work.
Do you see anything wrong. The 2 db field names are correct as is the ?mainID field .
RewriteEngine On
RewriteCond %{QUERY_STRING} ^mainID=([0-9]+)
RewriteRule ^([A-Z]{2})/([\+a-z\ ]+)\.php$ showdr.php?firstName=$1&lastName=$2
Also can a underscore be added between the first and last name field above.
Just dont see what I am missing.