Bonjour
J'ais un petit problème avec le rewriting mes annonces , je vous donne un exemple. Lorsque je vais sur cette page http://www.annonces-de-france.net/petit ... v-490.html le rewrite fonctionne mais sur cette même page pour le détail de l'annonce en bas j'ai cette adresse http://www.annonces-de-france.net/petit ... hp?id=6508 .
Quelqu'un pourrait il m'aider à résoudre ce problème.
Voici le fichier à modifier:
function writeLinkedTitle($aCatid)
{
global $cat_tbl,$name_of_site,$lCatArray;
$lCatid = $aCatid;
if (!isset($home)) {
$home = "";
}
//print "<table border='0' width='100%' cellspacing='0' cellpadding='10'>";
//print "<tr><td width='100%'>";
$lStr.="<a href='index.php'><img src='layout_images/pointer.gif' border='0' hspace='2' alt='$home' />$home</a>";
$lStr.="<a href='index.php'><u>$name_of_site</u></a> ";
if ($lCatid>0)
{
$next_id=$lCatid;
while ($next_id<>-1)
{
$next_id=getParent($next_id);
$counter++;
}
$lCat=array_reverse($lCatArray);
foreach ($lCat as $cat) {
$lStr.=$cat;
}
}
return $lStr;
//print "</td></tr></table>";
}
et mon htaccess:
php_value magic_quotes_gpc "1"
php_value register_globals "0"
RewriteEngine on
RewriteRule ^annonce-([a-zA-Z0-9+]+)-([0-9]+).html$ detail.php?catname=$1&id=$2 [L]
RewriteRule ^annonces-([a-zA-Z0-9+]+)-([0-9]+).html$ index.php?catname=$1&catid=$2 [L]
RewriteRule ^annonces-rubrique-([a-zA-Z0-9+]+)-([0-9]+).html$ index.php?catname=$1&catid=$2 [L]
D'avance merci
J'ais un petit problème avec le rewriting mes annonces , je vous donne un exemple. Lorsque je vais sur cette page http://www.annonces-de-france.net/petit ... v-490.html le rewrite fonctionne mais sur cette même page pour le détail de l'annonce en bas j'ai cette adresse http://www.annonces-de-france.net/petit ... hp?id=6508 .
Quelqu'un pourrait il m'aider à résoudre ce problème.
Voici le fichier à modifier:
function writeLinkedTitle($aCatid)
{
global $cat_tbl,$name_of_site,$lCatArray;
$lCatid = $aCatid;
if (!isset($home)) {
$home = "";
}
//print "<table border='0' width='100%' cellspacing='0' cellpadding='10'>";
//print "<tr><td width='100%'>";
$lStr.="<a href='index.php'><img src='layout_images/pointer.gif' border='0' hspace='2' alt='$home' />$home</a>";
$lStr.="<a href='index.php'><u>$name_of_site</u></a> ";
if ($lCatid>0)
{
$next_id=$lCatid;
while ($next_id<>-1)
{
$next_id=getParent($next_id);
$counter++;
}
$lCat=array_reverse($lCatArray);
foreach ($lCat as $cat) {
$lStr.=$cat;
}
}
return $lStr;
//print "</td></tr></table>";
}
et mon htaccess:
php_value magic_quotes_gpc "1"
php_value register_globals "0"
RewriteEngine on
RewriteRule ^annonce-([a-zA-Z0-9+]+)-([0-9]+).html$ detail.php?catname=$1&id=$2 [L]
RewriteRule ^annonces-([a-zA-Z0-9+]+)-([0-9]+).html$ index.php?catname=$1&catid=$2 [L]
RewriteRule ^annonces-rubrique-([a-zA-Z0-9+]+)-([0-9]+).html$ index.php?catname=$1&catid=$2 [L]
D'avance merci