Hi,
I am planning for multiple sub-domain names based on city, something like city1.mydomain.com, city2.mydomain.com, ... All sub-domains will point to same file structure on main domain. Then in my program I would like to capture the city name and display content based on city.
What is the best approach to identify the city (based on the sub-domain selected). - By reading the host name? - or by htaccess mod-rewrite? - or something else?
Thanks!