Bonjour,
J'ai un petit problème au niveau desredirections headers d'un site.
Je procède ainsi :
header("Status: 301 Moved Permanently", false, 301);
header('Location: index.php?action=connect');
Quand je le met sur mon propre serveur, il fonctionne parfaitement bien.
J'ai tester sur un autre serveur et aucun redirection ne fonctionne.
par exemple.
Code : Sélectionner tout - Visualiser dans une fenêtre à part Warning: Cannot modify header information - headers already sent by (output started at /home/commentg/www/casino/config.php:1) in /home/commentg/www/casino/header.php on line 53
Y a t il une ligne à modifier dans le php.ini pour autoriser ces redirections ?
PS: Il n'y a absolument aucun caractère html ou code afficher à l'écran avant le header et les pages sont encodé en UTF-8 sans BOM.
Le seul truc avant la redirection est le session_start();
Partager