Bonjour
Problématique pour ceux qui ont :
-un site référencé par google
-et qui veulent passer de 1.8.3 à 2.0.6
-et dont les url étaient du style article.php3?id_article=157
-sans perdre le référencement de google (qui pointe vers des adresses : article.php3?id_article=157
Deux fichiers :
article.php3
<?php
$chain=$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$chain=preg_replace('`article.php3`','spip.php',$chain);
$chain=preg_replace('`id_article=`','article',$chain);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META HTTP-EQUIV="Refresh" CONTENT="1;URL=http://<?php echo trim($chain); ?>">
<title>Redirection</title>
</head>
<body>
<p>Bonjour</p>
<p>Oups erreur de redirection</p>
<p>Si au bout de 5s vous n'êtes pas redirigés <a href="http://<?php echo trim($chain); ?>">cliquez ici</a>. </p>
</body>
</html>
rubrique.php3
<?php
$chain=$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$chain=preg_replace('`rubrique.php3`','spip.php',$chain);
$chain=preg_replace('`id_rubrique=`','rubrique',$chain);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META HTTP-EQUIV="Refresh" CONTENT="1;URL=http://<?php echo trim($chain); ?>">
<title>Redirection</title>
</head>
<body>
<p>Bonjour</p>
<p>Oups erreur de redirection</p>
<p>Si au bout de 5s vous n'êtes pas redirigés <a href="http://<?php echo trim($chain); ?>">cliquez ici</a>. </p>
</body>
</html>
Il y a surement une méthode plus élégante mais elle a le mérite de bien fonctionner.
Philippe
geea.spip a écrit :
Bonjour
Pour contourner le pb j'ai créé un fichier article.php3
Dans lequel il y a juste :
<?php
echo 'vous allez être redirigés';
?>
Exemple ici
http://www.centrejaya.org/article.php3?id_article=157
Même çà passe à la moulinette spip ? puisque j'ai le recalcul possible ?!...
Cordialement
PAvi a écrit :
Bonjour
Je suis passé de spip 1.8.3 à 2.0.6
Or google référençait les adresses de type
http://www.centrejaya.org/article.php3?id_article=23
Ce qui m'envoie sur normalement la 404.
Or rien ne s'affiche.
sur le htaccess j'ai bien enlevé le # de la ligne
ErrorDocument 404 /spip.php?page=404
J'ai renomé htaccess.txt en .htaccess
La page renvoyée est vide.
Ai je oublié quelque chose ?
Je suis sur OVH
Merci
Philippe
_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.spip.net/
irc://irc.freenode.net/spip ou http://embed.mibbit.com/?server=irc.freenode.net&channel=%23spip
_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.spip.net/
irc://irc.freenode.net/spip ou http://embed.mibbit.com/?server=irc.freenode.net&channel=%23spip