Modérateur: Equipe
ob_start();
function replace_mod_rewrite($s)
{
$urlin = array(
"'(?<!/)viewforum.php\?f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewforum.php\?f=([0-9]*)&mark=topics'",
"'(?<!/)viewforum.php\?f=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=previous'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=next'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&view=newest'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)'", "'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)viewtopic.php\?t=([0-9]*)'",
"'(?<!/)viewtopic.php\?p=([0-9]*)'");
$urlout = array(
"viewforum\\1-\\2-\\3.html",
"mforum\\1.html",
"forum\\1.html",
"ptopic\\1.html",
"ntopic\\1.html",
"newtopic\\1.html",
"ftopic\\1-\\2-\\3-\\4.html",
"ftopic\\1-\\2-\\3-\\4-\\5.html",
"ftopic\\1-\\2.html",
"ftopic\\1.html",
"sutra\\1.html");
$s = preg_replace($urlin, $urlout, $s);
return $s;
}

nicnico a écrit:On a tous le meme probleme lol, et on prit le seigneur de voir arriver cette solution, y en a des partielles mais qui marche pas pour moi apparement

Nicnico a écrit:Il faut remplacer RewriteRule ^forum([0-9]*).* viewforum.php?f=$1&mark=topics par RewriteRule ^mforum([0-9]*).* viewforum.php?f=$1&mark=topics dans le .htaccess .
Ce qui marche pour certains et pas pour moi...



à gauche d'un titre de sujet





zyclope a écrit:votre forum est une adresse du type http://www.monsite/phpbb
ou http://www.phpbb.monsite ?
sinon je sais pas si c'est une solution mais pour toi Nicnico il maquais des / dans ton fichier

christophe83 a écrit:Il y a un problème avec newtopicXX.php (404 quand on clic sur l'img à gauche d'un titre de sujet)

ah j'ai un tout petit bug
je ne peut pas chnager de page si y a plusieurs pages a un post ca revien toujours à la page 1 :/ idem pour passer a la page 2 dans une section

Newbie_de_plus a écrit:christophe83 a écrit:Il y a un problème avec newtopicXX.php (404 quand on clic sur l'img à gauche d'un titre de sujet)
exact même souci
RewriteRule ^newtopic([0-9]*).* viewtopic.php?t=$1&view=newestRewriteRule ^newtopic([0-9]*).* /viewtopic.php?t=$1&view=newestRewriteRule ^newtopic([0-9]*).* /repforum/viewtopic.php?t=$1&view=newest
Retourner vers Coding, Webmastering et Sécurité informatique
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 6 invités