Problème d'indexation double de la page d'accueil

WRInaute discret
Bonjour,

Google indexe à la fois mon nom de domaine et ma page index.php (les PR sont différents), j'ai bien vérifié et je n'ai aucun lien interne qui pointe vers index.php.

Que puis-je faire pour solutionner ce problème?

Merci.
 
WRInaute accro
Code:
<?php // prevent indexing of index.php
if($_SERVER['REQUEST_URI'] == '/index.php')
	{
	header("Status: 301 Moved Permanently", false, 301);
	header("Location: http://".$_SERVER['HTTP_HOST']."/");
	exit;
	}
?>
 
WRInaute discret
J'hésitais justement à faire un redirection 301 ou à interdire l'indexation de la page index.php par le fichier robot.txt.

Merci.
 
Discussions similaires
Haut