- Code: Tout sélectionner
$uri = $uri = $phpbb_seo->seo_path['root_url'] . $phpbb_seo->seo_req_uri();
$url = "l'url complète attendue que tu construit de la même façon que pour tes liens";
if ($url != $uri) {
$phpbb_seo->seo_redirect( $url );
}
Et hop
Modérateur: Modérateurs
$uri = $uri = $phpbb_seo->seo_path['root_url'] . $phpbb_seo->seo_req_uri();
$url = "l'url complète attendue que tu construit de la même façon que pour tes liens";
if ($url != $uri) {
$phpbb_seo->seo_redirect( $url );
}
Warning: Cannot modify header information - headers already sent by (output started at ***\cache\tpl_subSilver.overall_header.php:22) in ***\phpbb_seo\phpbb_seo_class.php on line 311
Warning: Cannot modify header information - headers already sent by (output started at ****\cache\tpl_subSilver.overall_header.php:22) in ****\phpbb_seo\phpbb_seo_class.php on line 312
$news_url = $phpbb_seo->format_url($val["titre"]).'-n'.$val["ID"].'.html';
$uri = $uri = $phpbb_seo->seo_path['root_url'] . $phpbb_seo->seo_req_uri();
$url = $phpbb_seo->seo_path['root_url'] . $news_url;
if ($url != $uri) {
$phpbb_seo->seo_redirect( $url );
}Warning: Cannot modify header information - headers already sent by (output started at ***\cache\tpl_subSilver.overall_header.php:22) in ***\phpbb_seo\phpbb_seo_class.php on line 311
Warning: Cannot modify header information - headers already sent by (output started at ****\cache\tpl_subSilver.overall_header.php:22) in ****\phpbb_seo\phpbb_seo_class.php on line 312 $http = (@function_exists("getallheaders")) ? "HTTP/1.1 " : "Status: ";
header($http . $header, $replace, $code);
header("Location:" . $url);
exit();

if($val["description"]&&(@$_GET["news"]!=$val["ID"])) {
$news_url = $phpbb_seo->format_url($val["titre"]).'-n'.$val["ID"].'.html';
echo "class='topictitle' href='".$news_url."'";

soit tu fait un requête supplémentaire avant la sortie pour récupérer le titre et construire l'url à vérifier.

Retourner vers Le Forum phpBB2
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités