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: 201
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready