php - Different Subdomains for Different Cities -
i developing website using codeigniter have different subdomains different cities, boston.mysite.com, nyc.mysite.com, philadelphia.mysite.com
groupon, yelp etc. have never done before , not know how achieve this! assume site mashes cities want seperate them different cities.
question 1: how seperate website different cities, each own subdomain?
question 2: have need duplicate controllers, views, models different cities? database? @ point dont think there difference in site different cities except database not shared among different cities
question 3: using ip address way find out city user in redirect user different subdomains?
codeigniter subdomains folders parallel www folder in site folder.
example: /site/boston/htdocs
they share same database, database config in application/config , have system folder setup shared resources across subdomains. still need setup subdomains vhosts in apache.
Comments
Post a Comment