CodeIgniter Forums
Multilanguage site and subdomains issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Multilanguage site and subdomains issue (/showthread.php?tid=23639)



Multilanguage site and subdomains issue - El Forum - 10-17-2009

[eluser]cmark[/eluser]
Hi there, im building a website with many language, the format right now is:

Code:
www.example.com/es-AR
www.example.com/en-US
www.example.com/en-UK
...

And i want to change it to:
Code:
es-AR.example.com
en-US.example.com
en-UK.example.com
...

How can i do to send the language var from the .htaccess to CI when is in subdomain?
And for the the domain accepts all subdomains that are diferents to www, how can i do?

Really thanks guys!


Multilanguage site and subdomains issue - El Forum - 10-19-2009

[eluser]rogierb[/eluser]
1: Wildcard DNS for the subdomains
2: Catch the subdomain in your index.php or extend the controller class to do so. Passing vars from .htaccess.... ugh...


Multilanguage site and subdomains issue - El Forum - 10-19-2009

[eluser]cmark[/eluser]
1: Ready : D
2: yeah, u are in right; i will extend;

Thx!