Welcome Guest, Not a member yet? Register   Sign In
Multilanguage site and subdomains issue
#1

[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!
#2

[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...
#3

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

Thx!




Theme © iAndrew 2016 - Forum software by © MyBB