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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.