Forum-webmaster
Technique - programmation => HTML / CSS / XHTML => Message commencé par: accentcom le le 20-06-2013 a 10:35:52

Titre: problème d'url rewriting
Posté par: accentcom le le 20-06-2013 a 10:35:52

Bonjour à tous

Je rencontre un problème avec l'url-rewriting

le rewriting des URL simples marche sans soucis par contre j'ai un souci sur ce type de redirection

RewriteRule ^formation-barbier-rasage\.html$ /formations.php?formation=barbier [L]

quand je saisi l'url "formation-barbier-rasage.html" dans mon navigateur il s'affiche une page d'erreur avec la notification suivante:

The requested URL /formations.php was not found on this server.

apparemment ma variable "formation=barbier" n'est pas prise en compte

J'ai beau me démener je ne comprends pas d'où ça vient.

Je compte sur vos lumières ;)

Voici le code de mon fichier .htaccess


Code:

#
# Attention : The .htaccess must correspond to the config_referencement.php (Dir : Includes)
#
# Le serveur doit suivre les liens symboliques :
Options +FollowSymlinks

SetEnv PHP_VER 5
RewriteEngine on

   RewriteRule ^formation-ongles-coiffure-esthetique\.html$ index.php
   RewriteRule ^formation-conseil-image-relooking\.html$ /formations.php?formation=relooking [L]
   RewriteRule ^formation-extensions-cheveux\.html$ /formations.php?formation=extension [L]
   RewriteRule ^formation-barbier-rasage\.html$ /formations.php?formation=barbier [L]
   RewriteRule ^formation-tribal-hair-design\.html$ /formations.php?formation=tribal [L]
   RewriteRule ^formation-marketing-communication\.html$ /formations.php?formation=boostbusiness [L]
   RewriteRule ^formation-maquillage\.html$ /formations.php?formation=makeup [L]
   RewriteRule ^formation-prothesiste-ongulaire\.html$ /formations.php?formation=styliste [L]
   RewriteRule ^contact-formation-coiffure-esthetique\.html$ contact.php
   RewriteRule ^mentions-legales\.html$ mentions.php



Merci d'avance pour vos réponses

Titre: Re:problème d'url rewriting
Posté par: Wolf18 le le 20-06-2013 a 11:35:20

ta page formations.php existe t-elle réellement ?
Essayes d'enlever le slash (/) devant sur tes lignes de réécriture.


Forum-webmaster | Actionné par YaBB SE
© 2001-2003, YaBB SE Dev Team. Tous droits réservés.