php et referencement google

Eléphanteau du PHP | 11 Messages

07 mai 2007, 21:19

Bonjours j'ai creer ressament mon premier site en PHP. Et j'ai inclus un systeme de statistique des visites et a chaque passage du robot de google, j'observe qu'il ce fais rediriger vers ma page 404. Et il n'est donc pas referencé. Je me demande ainsi si cela n'est pas du au code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

    <head>
        <title>Location Plouneour-Trez</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<meta name="Description" content="Cette maison neuve idéale pour 5 personnes est située à Plounéour-Trez en bord de mer..."/>
		<meta name="Keywords" content="location.plouneour, rue de traverse, plouneour, plouneour-trez, 29890, kerdraon, alain kerdraon, location maison, location, plage, mer, bord de mer, location bord de mer, location bretage, location finistere, bretagne, finistere"/>
		<meta name="Author" content="Viros Alexandre"/>
		<meta name="Identifier-URL" content="http://location.plouneour.free.fr/"/>
		<link rel="stylesheet" media="screen" type="text/css" title="Essai" href="style.css" />
    </head>
    <body>
		<?php include('include/secu.php');
				include('include/stat_record.php');
		?>
		<div id="en_tete">
		
		</div>
		
		<div id="menu">
			
			<a href="index.php?page=accueil">Accueil</a><br/>
			<a href="index.php?page=descriptif">Descriptif</a><br/>
			<a href="index.php?page=tarif">Tarif</a><br/>
			<a href="index.php?page=plan">Plan d'accés</a><br/> 
			<a href="index.php?page=loisirs">Loisirs</a><br/>
			<a href="index.php?page=reservation">Reservation</a><br/>
			<a href="index.php?page=contact">Contact</a>
						
		</div>
		
		<div id="corp">
			<?php

		if (!empty($_GET['page']))
		{
		if(is_file('./contenue/'.$page.'.php'))  include('./contenue/'.$page.'.php');
		elseif(is_file('./include/'.$page.'.php'))  include('./include/'.$page.'.php');
		elseif(is_file('./script/'.$page.'.php'))  include('./script/'.$page.'.php');
		elseif(is_file('./admin/'.$page.'.php'))  include('./admin/'.$page.'.php');
		elseif(is_file('./calendrier/'.$page.'.php'))  include('./calendrier/'.$page.'.php');
		else  include('./contenue/404.php');
		}
		
		else 
		{
		include('contenue/accueil.php');
		}

			?>
			
		</div>
		
		<div id="pied_de_page">
			<p>
			<a href="index.php?page=accueil">Accueil</a>
			*
			<a href="index.php?page=descriptif">Descriptif</a>
			*
			<a href="index.php?page=tarif">Tarif</a>
			*
			<a href="index.php?page=plan">Plan d'accés</a>
			*
			<a href="index.php?page=loisirs">Loisirs</a>
			*
			<a href="index.php?page=reservation">Reservation</a>
			*
			<a href="index.php?page=contact">Contact</a>
			*
			<a href="index.php?page=admin">Admin</a><br/>
			
		Dernière mise à jour du site : 19/02/2007</p>			
		</div>

//publicité
<div>

<table width="145" height="20" bgcolor="gold">
	<tr>
		<td width="145">
			<div>
				<style type="text/css">
				.bouton		{font-family:Arial;font-size:15px;text-align:center;width:147px;height:31px;background-color:00BFFF;border:2px dashed darkblue;}
				.bouton a	{color:yellow;}
				.bouton a:hover	{text-decoration:none;}
				</style>
				<div class="bouton">
				<a href="http://www.location-dinard.com/" title="location vacance" target="_blank"><strong><b><i>Location vacances</strong></a><marquee scrolldelay="190" > <a title="annuaire de vacances" href="http://www.location-dinard.com/annuaire-vacances/"><font color="darkblue" size="1">Annuaire de vacances</a> <a href="http://www.location-dinard.com/corse/"><font color="darkblue" size="1">Location Corse</a>, <a href="http://www.location-dinard.com/paris/"><font color="darkblue" size="1">location Paris</a> , <a href="http://www.location-dinard.com/belgique/"><font color="darkblue" size="1">location Belgique</a> , <a href="http://www.location-dinard.com/suisse/"><font color="darkblue" size="1">location suisse</a> <font color="darkblue" size="1"> affilié a <a title='location de vacances' href='http://www.location-et-vacances.com/location-France,search,6,0,0,0,H.html' target='_blank'><font color="darkblue"><b>Chambre d'hotes</a> L&V</font></marquee>
				</div>
			</div>
		</td>
	</tr>
</table>

<table width="155" height="47" background="http://www.location-et-bretagne.com/annuaire/img/bouton.png" cellpadding=0 cellspacing=0 bordercolor="black">
	<tr>
		<td align=center>
			<font color=darkblue size=2>
				<a href="http://www.location-et-bretagne.com/" title="villa bretagne"><font color=darkblue size=3><b>location Bretagne</b></a>
			</font>
			<br><marquee width=110 scrolldelay=200><font color=white size=2>Location Bretagne sur http://www.location-et-bretagne.com/   inscrivez votre site consacré au tourisme et à l' hébergement de vacances en Bretagne 22 29 35 44 56  .<a title="annonce en Bretagne" href="http://www.location-et-bretagne.com/"><font color="white"><b>location vacances Bretagne</a>, <font color="white">appartement, chambre d’hote, studio, maison a <a href="http://www.location-et-bretagne.com/vacances/"><font color="white">louer en Bretagne</a> . En partenariat avec L&V <a title="vacances Bretagne" href="http://www.location-et-vacances.com/location-vacances-Bretagne,5.html"><font color="white"><b>location Bretagne</a></font>.
			</font></marquee>
		</td>
	</tr>
</table>

</div>

	
	   
    </body>
</html>
merci d'avances pour vos reponses.
Modifié en dernier par alex29260 le 08 mai 2007, 11:08, modifié 1 fois.

ViPHP
ViPHP | 5924 Messages

07 mai 2007, 23:01

Lorsqu'il génère une erreur 404 pour le robot, ya des pages précises concernées (peux tu nous donner les urls auxquelles les robots essayent d'acceder lorsqu'ils tombent sur une erreur 404 ?)

Eléphanteau du PHP | 11 Messages

08 mai 2007, 11:06

Je ne sais pas quel page il a essayé de trouver avant.

une copie des entrés dans ma base de données http://location.plouneour.free.fr/php.jpg

Il faut peut etre que je rajoute une fonction pour obtenir la page visitée precedement, si oui laquelle ?

ViPHP
ViPHP | 5924 Messages

08 mai 2007, 11:36

Non, regarde dans les logs apache si tu les as (tu es chez quel hébergeur ?)

Eléphanteau du PHP | 11 Messages

08 mai 2007, 12:29

je suis chez free

ViPHP
ViPHP | 5924 Messages

08 mai 2007, 13:29

Arf, bah ca va pas être possible d'avoir les logs.
Essaye de valider ta page dans un validateur W3C.

Eléphanteau du PHP | 11 Messages

09 mai 2007, 17:15

Ma page est deja valide :

This Page Is Valid XHTML 1.0 Transitional!