Basically I am trying to make a codeigniter application with localization subdomains in such a way that if I get access:
ca.site.com โ it will run the same system, but will display Canadian content. us.site.com โ still works with the same system, but shows American content.
plus, if I access www.site.com, it will automatically get the correct localization using ip2country and will be redirected as if from uk, redir to uk.site.com
there will be only 1 system folder and 1 application folder:
root / system / expression index.php
now i want the urls to stay depending on what kind of localization they are. as:
uk.site.com/profile/1 will gain access to the profile controller ca.site.com/profile/3 will also access the same controller. uk.site.com uses
how can i implement this?
Sorry if my request is a little rude. but I hope someone can help me.
source share