google search
2 posts
• Page 1 of 1
google search
Hi,
How can do this redirection when the user cames from google :
test.mydomain.fr/fr/xxx.htm to www.mydomain.fr/fr/xxx.htm
test.mydomain.en/fr/xxx.htm to www.mydomain.en/fr/xxx.htm
...
Thanks
How can do this redirection when the user cames from google :
test.mydomain.fr/fr/xxx.htm to www.mydomain.fr/fr/xxx.htm
test.mydomain.en/fr/xxx.htm to www.mydomain.en/fr/xxx.htm
...
Thanks
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: google search
Hello,
Please, try using the following:
Regards
Andrew
Please, try using the following:
- Code: Select all
RewriteCond %{HTTP:Host} ^test\.(mydomain\..*)$
RewriteRule (.*) http://www.%1/$1 [NC,R=301,L]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests