Jump to content

Redirect to address with php variable


imperium2335

Recommended Posts

Hi,

 

I have two domains, www.interfiber.com and www.interfiber.cn.

 

The .cn redirects to the .com through some settings on the domain or host.

 

What I would like to do is if someone visits via .cn, it redirects to the .com with a php variable. e.g. someone visits via .cn, ends up at www.interfiber.com?lang=Cn

 

How do I do this redirect in the .htaccess file?

 

Cheers, Tom.

Link to comment
https://forums.phpfreaks.com/topic/180624-redirect-to-address-with-php-variable/
Share on other sites

The only way you could ever get a loop is if you have it on www.interfiber.com. You need to remove any forwarding set up on interfiber.cn's domain and simply place that .htaccess file in the root directory. That will forward all requests over.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.