Multi urlrewrite dans un seul fichier htaccess

Fermé
markaz Messages postés 331 Date d'inscription mercredi 18 avril 2007 Statut Membre Dernière intervention 16 septembre 2015 - 18 juil. 2013 à 18:10
markaz Messages postés 331 Date d'inscription mercredi 18 avril 2007 Statut Membre Dernière intervention 16 septembre 2015 - 26 juil. 2013 à 14:21
Bonjour, j'ai crée un fichier .htaccess pour faire de rédirections.

code du fichier htaccess:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^article-([0-9]+)-([A-Za-z\-]+)\.html$  article.php?p=$1&alias=$2 
RewriteRule ^dossier/([0-9]+)/([A-Za-z\-]+)\.html$  dossier.php?p=$1&alias=$2 


Lien php

Lien pour article:
<a href="<?php echo "article-".$data->idart."-".$data->alias.".html";?>">Lire</a>


Lien pour dossier
<a href="<?php echo "dossier/".$dataDos->iddossier."/".$dataDos->aliasdossier.".html";?>">Suite</a>


Le premier (article) il marche sans problème c'est le second lien qui ne marche pas.
Erreur 404 (not found)


A voir également:

1 réponse

markaz Messages postés 331 Date d'inscription mercredi 18 avril 2007 Statut Membre Dernière intervention 16 septembre 2015 5
26 juil. 2013 à 14:21
Personne pour m'aider?
0