Welcome! Log In Create A New Profile

Advanced

How to redirect to the local domain?

Posted by yossin 
How to redirect to the local domain?
March 18, 2012 07:39PM
Hi -
My company has 30 local domains in addition to the main domain.
I would like to know how can i redirect to the relevant local domain given a pre-defined value (like language)?
For example:
if the "lang" parameter equals "fr" then redirect to www.example.fr . if it's "de" then redirect to de.example.com and so on ...

I know this sounds trivial, however, i seek for a way in which i wouldn't have to implement 30 "if" statements in order to do this.

does anybody know efficient way to do this?

thanks in advance
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready