Hello,
I'd like to redirect www.mydomain.com to www.mydomain2.com/try.html. These domains are on two differents servers.
This is what I've tried but it does not work:
if ($http_referer ~* (www.mydomain.com) ) {
return 301 http://www.mydomain2.com/try.html;
}
OR
if ($http_referer ~* (www.mydomain.com) ) {
rewrite ^ http://mydomain2.com/try.html permanent;
}
These two ways are not working, when i go to mydomain.com I stay on mydomain.com but... without the CSS... And I am not redirected to mydomain2.com/try.html
Any help appreciated.
Regards,
Francis