Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/06/2016, 18:46
Avatar de Fernarey1810
Fernarey1810
 
Fecha de Ingreso: noviembre-2008
Mensajes: 214
Antigüedad: 15 años, 5 meses
Puntos: 1
header location problema

Tengo la siguiente URL

http://localhost/Apache/Capitulo4/

cuando hago esto:

Código PHP:
Ver original
  1. header('Location:  '.$proper_url);
  2. exit();

$proper_url tiene esto
localhost/Apache/Capitulo4/Products/Friends-Shed-C2/AJAX-PHP-Book-P42.html

en vez de llevarme a localhost/Apache/Capitulo4/Products/Friends-Shed-C2/AJAX-PHP-Book-P42.html

me lleva a esto
Código HTML:
Ver original
  1. http://localhost/Apache/Capitulo4/localhost/Apache/Capitulo4/Products/Friends-Shed-C2/AJAX-PHP-Book-P42.html

osea concatena a la URL actual el contenido de $proper_url, pero yo solo quiero que me redireccione a $proper_url, cual es el error?