Bug #1553

Redirect from subdomain to another doesn`t work

Added by Anonymous 335 days ago. Updated 89 days ago.

Status:Invalid Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:mod_redirect
Target version:1.5.0
Pending:

Resolution:

invalid

Patch available:


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

History

02/07/2008 02:40 PM - Anonymous

Not a bug, use something like this instead:


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

02/18/2008 03:48 PM - stbuehler

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

And btw, this is not a support forum.

10/10/2008 06:54 PM - stbuehler

  • Status changed from Fixed to Invalid

Also available in: Atom PDF