One Codeingniter installation. Multiple parked domains |
[eluser]Andy UK[/eluser]
I have a single Codeigniter installation, but various parked domains that lead to that one installation. I need to read which domain the user arrives by in order to feed the right Google Maps API key to the application (a different key for each domain) Is there a way to read the domain name and what should be done about the domain name registered in the config file. Can more than one domain name be used in a single installation? Thanks in advance!
[eluser]theprodigy[/eluser]
Take a look at the $_SERVER variable docs. It will give you the domain name that the user came in on. Code: <?php In your config file, just do something like: Code: <?php
|
Welcome Guest, Not a member yet? Register Sign In |