Bonjour,
je tente une redirection ainsi : header('Location:'. SITE_URL_HTTP.'/indexpagewithauth.php');,la constante étant définie ainsi :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 if(!defined('SITE_URL_WWW')) define('SITE_URL_WWW', 'localhost/eis/eis'); if( !defined('SITE_URL_HTTP')) define('SITE_URL_HTTP', 'http://'.SITE_URL_WWW);
comme ça ne fonctionne pas, j'ai rajouté cet echo : echo SITE_URL_HTTP.'/indexpagewithauth.php<br/>';et ça affiche C'est la bonne URL mais la redirection ne se fait pas ; pourquoi ?
et si je remplace le code par header('Location:http://localhost/eis/eis/indexpagewithauth.php');, là, ça fonctionne...
Partager