Project

General

Profile

Actions

Bug #1553

closed

Redirect from subdomain to another doesn`t work

Added by Anonymous about 16 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_redirect
Target version:
ASK QUESTIONS IN Forums:

Description

Hello,

I very new and my english is not very good but I hope I can explain the problem and you can help me.

I wants to redirect subdomain.domain.de to www.anotherdomain.de/123
I tryed the following:
$HTTP“host“ == “subdomain.domain.de“ {
url.redirect = („.^/subdomain.domain.de“ => „http://www.anotherdomain.de/123“)}

but it doesnt work. Only this subdomain shoult be redirected to another domain, not other subdomains or the main domain.

Kind regards
S. Happel

-- SHappel

Actions #1

Updated by Anonymous about 16 years ago

Not a bug, use something like this instead:


$HTTP["host"] =~ "subdomain.domain.de" { 
  url.redirect = ( "^/(.*)" => "http://www.anotherdomain.de/123" ) 
}
Actions #2

Updated by stbuehler about 16 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

And btw, this is not a support forum.

Actions #3

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom