I have mydomain.com/residential/browse.php?region=1&town=2&suburb=3
I want to rewrite this to mydomain.com/residential/properties-for-sale-nsw-city-sydney.html
I want a php file to take the variables "region=1&town=2&suburb=3" and look up in a mysql database these variables and get the resulting names "nsw-city-sydney" for the mod rewrite (I can do this bit).
So, ultimately, I am trying to avoid creating a separate mod_rewrite entry in the .htaccess file for each combination of region/town/suburb, but rather somehow refer to a php file which, based on the GET variables, will provide the rewrite on the fly.