IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Blocage d'ajout d'un lien supplémentaire à un menu


Sujet :

Langage PHP

  1. #1
    Membre régulier
    Femme Profil pro
    Développeur Web
    Inscrit en
    Octobre 2010
    Messages
    414
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Octobre 2010
    Messages : 414
    Points : 111
    Points
    111
    Par défaut Blocage d'ajout d'un lien supplémentaire à un menu
    Bonjour
    J'ai un menu que vous pouvez voir en code en dessous, il fonctionne nickel et j'ai juste rajouté un lien supplémentaire (photos) et ça ne fonctionne pas, ça me renvoit vers un lie d'erreur 404: .
    Comment faire fonctionner ce lien, j'ai pensé que ça pourrai venir du fichier htaccess que je vous met en dessous également. Je ne vois pas où vient le problème, aidez-moi, merci


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <!-- menu -->	<ul id="menu">
    		<li><a href="<?php print getLink('hebergement'); ?>" title="<?php print getTitle('H&eacute;bergement', 'Accomodation', 'Unterkunft'); ?>"><img src="<?php print PATH; ?>/img/icon/star.png" class="pictos" alt="Trois &eacute;toiles" style="left: 3px" border="0" /> <?php print getTitle('H&eacute;bergement', 'Accomodation', 'Unterkunft'); ?></a></li>
    		<li><a href="<?php print getLink('restauration'); ?>" title="<?php print getTitle('Restauration', 'Catering', 'Restaurant'); ?>"> <?php print getTitle('Restauration', 'Catering', 'Restaurant'); ?></a></li>
    		<li><a href="<?php print getLink('bar-brasserie'); ?>" title="<?php print getTitle('Bar/Brasserie', 'Pub/Brasserie', 'Bar/Pub'); ?>"><?php print getTitle('Bar/Brasserie', 'Pub/Brasserie', 'Bar/Pub'); ?></a></li>
    		<li><a href="<?php print getLink('seminaire'); ?>" title="<?php print getTitle('S&eacute;minaire', 'Conference', 'Seminare'); ?>"><?php print getTitle('S&eacute;minaire', 'Conference', 'Seminare'); ?></a></li>
    		<li><a href="<?php print getLink('environs'); ?>" title="<?php print getTitle('D&eacute;couvrir les alentours', 'Discover surroundings', 'Umgebung'); ?>"><?php print getTitle('D&eacute;couvrir les alentours', 'Discover surroundings', 'Umgebung'); ?></a></li>
    		<li><a href="<?php print getLink('loisirs'); ?>" title="<?php print getTitle('Loisirs', 'Leisures', 'Unterhaltung'); ?>"><?php print getTitle('Loisirs', 'Leisures', 'Unterhaltung'); ?></a></li>
    		<li><a href="<?php print getLink('acces'); ?>" title="<?php print getTitle('Acc&egrave;s', 'Access', 'Anfahrt'); ?>"><?php print getTitle('Acc&egrave;s', 'Access', 'Anfahrt'); ?></a></li>
    		<li><a href="<?php print getLink('contact'); ?>" title="<?php print getTitle('Contact', 'Contact', 'Kontakt'); ?>"><?php print getTitle('Contact', 'Contact', 'Kontakt'); ?></a></li>
    		<li><a href="<?php print getLink('photos'); ?>" title="<?php print getTitle('Photos', 'Photos', 'Photos'); ?>"><?php print getTitle('Photos', 'Photos', 'Photos'); ?></a></li>
    	</ul>
    	<!-- /menu -->
    Fichier htaccess:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    ErrorDocument 404 http://www.lamaisondechine.allkers.com/404#-----------------------------------------------------------------------------------------
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    #-----------------------------------------------------------------------------------------
    RewriteRule ^(fr|en|de)$ index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/hebergement$ hebergement/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/restauration$ restauration/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/bar-brasserie$ bar-brasserie/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/seminaire$ seminaire/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/environs$ environs/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/loisirs$ loisirs/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/contact$ contact/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/acces$ acces/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/legal$ legal/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/apropos$ apropos/index.php?l=$1 [L]
    RewriteRule ^(fr|en|de)/404$ 404/index.php?l=$1 [L]
    #-----------------------------------------------------------------------------------------
    RedirectPermanent /ang.htm http://www.lamaisondechine.allkers.com/en
    RedirectPermanent /all.htm http://www.lamaisondechine.allkers.com/en
    RedirectPermanent /environsetliens.htm http://www.lamaisondechine.allkers.com/environs
    RedirectPermanent /environsetliensang.htm http://www.lamaisondechine.allkers.com/en/environs
    RedirectPermanent /environsetliensall.htm http://www.lamaisondechine.allkers.com/en/environs
    RedirectPermanent /acces.htm http://www.lamaisondechine.allkers.com/acces
    RedirectPermanent /accesall.htm http://www.lamaisondechine.allkers.com/en/acces
    RedirectPermanent /accesang.htm http://www.lamaisondechine.allkers.com/en/acces
    RedirectPermanent /restaurant.htm http://www.lamaisondechine.allkers.com/restauration
    RedirectPermanent /restaurantang.htm http://www.lamaisondechine.allkers.com/en/restauration
    RedirectPermanent /restaurantall.htm http://www.lamaisondechine.allkers.com/en/restauration
    RedirectPermanent /seminaires.htm http://www.lamaisondechine.allkers.com/seminaire
    RedirectPermanent /seminairesang.htm http://www.lamaisondechine.allkers.com/en/seminaire
    RedirectPermanent /seminairesall.htm http://www.lamaisondechine.allkers.com/en/seminaire
    RedirectPermanent /reservation.htm http://www.lamaisondechine.allkers.com/contact
    RedirectPermanent /reservationang.htm http://www.lamaisondechine.allkers.com/en/contact
    RedirectPermanent /reservationall.htm http://www.lamaisondechine.allkers.com/en/contact
    RedirectPermanent /hebergement.htm http://www.lamaisondechine.allkers.com/hebergement
    RedirectPermanent /hebergementall.htm http://www.lamaisondechine.allkers.com/en/hebergement
    RedirectPermanent /hebergementang.htm http://www.lamaisondechine.allkers.com/en/hebergement
    RedirectPermanent /bar.htm http://www.lamaisondechine.allkers.com/bar-brasserie
    RedirectPermanent /barall.htm http://www.lamaisondechine.allkers.com/en/bar-brasserie
    RedirectPermanent /barang.htm http://www.lamaisondechine.allkers.com/en/bar-brasserie
    RedirectPermanent /tarifs.htm http://www.lamaisondechine.allkers.com/contact
    RedirectPermanent /tarifsang.htm http://www.lamaisondechine.allkers.com/en/contact
    RedirectPermanent /tarifsang.htm http://www.lamaisondechine.allkers.com/en/contact
    RedirectPermanent /tarifs.htm http://www.lamaisondechine.allkers.com/photos
    RedirectPermanent /tarifsang.htm http://www.lamaisondechine.allkers.com/en/photos
    RedirectPermanent /tarifsang.htm http://www.lamaisondechine.allkers.com/en/photos
    Formatrice - Web développeuse - WebMarketing - Recrutement
    Site O'ClockWeb : http://oclockweb.cvflashjob.com/
    Mon Facebook : https://www.facebook.com/minkoueobame

  2. #2
    Membre régulier
    Femme Profil pro
    Développeur Web
    Inscrit en
    Octobre 2010
    Messages
    414
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Seine Maritime (Haute Normandie)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Octobre 2010
    Messages : 414
    Points : 111
    Points
    111
    Par défaut
    C'estbon j'ai trouvé il fait que j'ajoute cette ligne au fichier htaccess :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    RewriteRule ^(fr|en|de)/photos$ photos/index.php?l=$1 [L]
    Formatrice - Web développeuse - WebMarketing - Recrutement
    Site O'ClockWeb : http://oclockweb.cvflashjob.com/
    Mon Facebook : https://www.facebook.com/minkoueobame

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Mail] Ajout d'un lien dans un scipt formmail.php
    Par PaulK dans le forum Langage
    Réponses: 1
    Dernier message: 13/11/2007, 22h59
  2. [XML] ajout d'un lien dans un document
    Par caroy dans le forum Flash
    Réponses: 4
    Dernier message: 12/03/2007, 01h26
  3. [Hibernate] Ajouter une couche multilangage supplémentaire
    Par KiLVaiDeN dans le forum Hibernate
    Réponses: 8
    Dernier message: 01/09/2005, 14h57

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo