faq.gifFAQ

Close  Rewriting

  • ouvrez votre fichier .htaccess ( celui de la racine de votre GuppY )
    et rajoutez ces 3 lignes dedans ( respectez la casse )


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^accueil.html$­­­ index.php [L]

  • enregistrez et ré-uploadez le fichier à sa place ...

  • dans la barre d'adresse de votre navigateur , rajoutez : accueil.html à la fin de votre url comme ceci :

http://www.mon_site.com/accueil.html


Vous voyez apparaitre votre page d'accueil ?

cool si oui => votre hébergeur accepte l'url-rewriting

confused si non ( renvoi vers une erreur 404 ) => il va falloir exploiter cette page (error404) pour simuler la ré-écriture d'url , ce sera d'ailleurs l'objet d'un futur tutoriel biggrin

Creation date :08/10/2007 @ 15:18Last update :08/10/2007 @ 15:19Print the article

Options +FollowSymlinks
RewriteEngine on

RewriteRule ^accueil-([a-z]*).html$­­­­ index.php?lng=$­­­­1 [L]
RewriteRule ^([a-z]*)-accueil.html$­­­­ index.php?lng=$­­­­1 [L]
RewriteRule ^telechargements-([a-z]*).html$­­­­ download.php?lng=$­­­­1 [L]
RewriteRule ^liens-([a-z]*).html$­­­­ links.php?lng=fr [L]
RewriteRule ^questions_frequentes-([a-z]*).html$­­­­ faq.php?lng=$­­­­1 [L]
RewriteRule ^questions_frequentes([0-9]*)-([a-z]*).html$­­­­ faq.php?lng=$­­­­2&pg=$­­­­1 [L]
RewriteRule ^imprimefaq([0-9]*)-([a-z]*).html$­­­­ printfaq.php?lng=$­­­­2&pg=$­­­­1 [L]
RewriteRule ^livre_d_or-([a-z]*).html$­­­­ guestbk.php?lng=$­­­­1 [L]
RewriteRule ^statistiques-([a-z]*).html$­­­­ stats.php?lng=$­­­­1 [L]
RewriteRule ^photorama-([a-z]*).html$­­­­ photorama.php?lng=$­­­­1 [L]
RewriteRule ^photos-([a-z]*).html$­­­­ photos.php?lng=$­­­­1 [L]
RewriteRule ^nouvelles-([a-z]*).html$­­­­ news.php?lng=$­­­­1 [L]
RewriteRule ^nouvelles-([0-9]+)-([a-z]*).html$­­­­ news.php?lng=$­­­­1&pg=$­­­­2 [L]

#articles
RewriteRule ^article-([0-9]*)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ articles.php?lng=$­­­­3&pg=$­­­&1 [L]
RewriteRule ^article-([0-9]*)-reaction([0-9]*)-([a-z]*).html$­­­­ articles.php?lng=$­­­­3&pg=$­­­­1&react=$­­­2 [L]

#blog
RewriteRule ^blog-([a-z]*).html$­­­­ blogs.php?lng=$­­­­1 [L]
RewriteRule ^blog-([0-9]+)-([a-z]*).html$­­­­ blog.php?lng=$­­­­2&pg=$­­­­1 [L]
RewriteRule ^blog-([0-9]*)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ blog.php?lng=$­­­­3&pg=$­­­­1 [L]
RewriteRule ^blogs-([0-9]{6})-([a-z]*).html$­­­­ blogs.php?lng=$­­­­2&sel=mois&date=$­­­­1 [L]
RewriteRule ^blogs-([0-9]{8})-([a-z]*).html$­­­­ blogs.php?lng=$­­­­2&sel=jour&datej=$­­­­1 [L]

#forum
RewriteRule ^topics-([a-z]*).html$­­­­ fortopic.php?lng=$­­­­1 [L]
RewriteRule ^liste_des_forums-([a-z]*).html$­­­­ fortopic.php?lng=$­­­­1 [L]
RewriteRule ^forum-([a-z]*).html$­­­­ forum.php?lng=$­­­­1 [L]
RewriteRule ^forum-n(°|[0-9]+)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ forum.php?lng=$­­­­2&cat=$­­­­1 [L]
RewriteRule ^forum-([0-9]+)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ forum.php?lng=$­­­­3&cat=$­­­­1 [L]
RewriteRule ^liste_des_fils-([0-9]+)-([0-9]+)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ forum.php?lng=$­­­­4&cat=$­­­­1&id=$­­­­2 [L]
RewriteRule ^fil-n(°|[0-9]+)-([0-9]+)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ thread.php?lng=$­­­­4&pg=$­­­­1&cat=$­­­­2 [L]
RewriteRule ^fil-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z0-9|_-]+)-([a-z]*).html$­­­­ thread.php?lng=$­­­­5&pg=$­­­­1&id=$­­­­2&cat=$­­­­3 [L]

Creation date :08/10/2007 @ 15:17Last update :12/10/2007 @ 07:28Print the article


Connect again
---

Your name (or pseudo) :

Your secret code (associated with your pseudo)


 Count of members 19 members


Connected :

(nobody)
Visits

   visitors

   visitors online

Search




Coming from ?
^ Top ^