Here's what I have:
Each state corresponds to numbers: -1, -2, -3, -4 etc. which are also $row[countryid]
Each city corresponds to numbers: 1, 2, 3, 4 etc. which are also $row[cityid]
( examples: qwikad.com/-1 or qwikad.com/1 )
The names of the states and cities are echoed by $xcountryname for the states and $xcityname for the cities
I'd like to convert all those links via htaccess into more user friendly subdomains.
So, qwikad.com/-1 should become alabama.qwikad.com and qwikad.com/1 should become auburn.qwikad.com etc. etc. etc.
Any ideas how?