Moin!
Aber noch ein Beispiel in php: header("Location........") erwartet eine vollstaendige Adresse wie "http://www.example.org/next.html"
Damit kann ich lokal nur schwerlich testen, also wird lokal nur relativ
"next.html" geschrieben.
Der Hostname steht in $_SERVER['HTTP_HOST'] - lokal wie remote. Damit setzt man sich ganz simpel ein absolutes Redirect-Ziel zusammen.
Wenn dann noch $_SERVER['HTTPS'] berücksichtigt wird, kann man sogar das Protokoll dynamisch anpassen, falls SSL benutzt wird.
- Sven Rautenberg
--
"Love your nation - respect the others."
"Love your nation - respect the others."