httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PMilan...@nypl.org
Subject RE: [users@httpd] Domain based redirect
Date Thu, 03 Feb 2005 14:11:58 GMT
If you need to do it blindly, use a rewrite. Otherwise, redirect.

 

They are both in the apache docs.

 

  _____  

From: Zambrano Teran, David [mailto:dzambrano@royal-holiday.com] 
Sent: Thursday, February 03, 2005 9:08 AM
To: users@httpd.apache.org
Subject: [users@httpd] Domain based redirect

 

Hello everyone

I have a web site in which the main page changes the language based on a
parameter, I also have two domains one is .com and the other is .com.mx;
as you probably know now what I want is to be able to redirect the request
of the page based on the domain. i.e

 

 <http://www.mydomain.com.mx/> www.mydomain.com.mx =
<http://www.mydomain.com/index.php?fuseaction=home.main&lg=1>
http://www.mydomain.com/index.php?fuseaction=home.main&lg=1        Spanish

 <http://www.mydomain.com/> www.mydomain.com    =
<http://www.mydomain.com/index.php?fuseaction=home.main&lg=2>
http://www.mydomain.com/index.php?fuseaction=home.main&lg=2        English

 

Is this possible?

 

Thanks in advance for you help

 

David


Mime
View raw message