Hi Everyone
I would like to redirect several domains to our dotcom address.
The domains have the following extensions:
- cn
- jp
- ch
- eu
- fr
www.domain.fr should point to www.domain.com - sub.domain.fr should point to sub.domain.com and the path after the extension should stay intact so that www.domain.fr/foo points to www.domain.com/foo
FR is just an example. It should work for all extensions the way explained. For me, it does not matter wheter we explicitly write (cn|jp|ch|eu|fr) or if set a wildcard.
I tried the following which did not work:
$HTTP["host"] =~ "(*.)?domain\.(*)(/*)?$" {
url.redirect = ("^/(.*)" => "http://%1.domain.com%3")
}
Thanks for your help!