Am working on a project that will run for multiple countries.
All the domains are pointing to same file.
My challenge is that i have few pages that should be unique for each country.
Example of such page is the xml feed page
Please how do i achieve that
Thanks
Some suggestions...
Alternative 1 using SetEnv Apache Module:
vhost example:
<VirtualHost *:80>
ServerName mydomain.com.br
DocumentRoot /var/www/html/MyDomain
SetEnv APPLICATION_COUNTRY "brazil"
</VirtualHost>
on php:
$country = getenv('APPLICATION_COUNTRY');
# your business logic here...
Alternative 2 without SetEnv Apache Module:
You can start creating an associative array to control custom pages visibility based on country var recovered.