Re-ecriture d URL : NSN News
| 1 - Sommaire |
Tout le nécessaire à la réécriture d'URL pour le module de Nukescripts NSN News 2.0.0.
Cela nécessite d'avoir le mod_rewrite d'activer chez votre hébergeur. |
|
| 2 - Htaccess |
#Articles
RewriteRule ^articles-commentaire-([0-9]*)-([0-9]*)-([a-zA-Z0-9_]*)-([0-9]*)-([a-zA-Z0-9_]*).html modules.php?name=News&op=NEReply&pid=$1&sid=$2&mode=$3&order=$4&thold=$5
RewriteRule ^articles-([0-9]*)-.html modules.php?name=News&op=NEArticles&thold=-1&mode=flat&order=0&sid=$1
RewriteRule ^article-categories-([0-9]*).html index.php?file=categories&op=newindex&catid=$1
RewriteRule ^article-categorie-([0-9]*).html modules.php?name=News&op=NECategoryList&catid=$1
RewriteRule ^article-categorie-([0-9]*).html index.php?op=NECategoryList&catid=$1
RewriteRule ^articles-du-sujet-([0-9]*).html modules.php?name=News&new_topic=$1
RewriteRule ^articles-([0-9]*).html modules.php?name=News&op=NEArticles&sid=$1
RewriteRule ^articles-([0-9]*).html modules.php?name=News&op=NEArticle&sid=$1
RewriteRule ^articles-du-sujet-([0-9]*).html modules.php?name=News&file=topics&op=newindex&topic=$1
RewriteRule ^articles-du-sujet-([0-9]*).html index.php?op=NETopics&topic=$1
RewriteRule ^sujet-menu.html index.php?op=NETopicMain
RewriteRule ^article-([0-9]*).html index.php?op=NEArticle&sid=$1
RewriteRule ^format-imprimable-([0-9]*).html index.php?op=NEPrint&sid=$1
RewriteRule ^format-imprimable-([0-9]*).html modules.php?name=News&file=print&sid=$1
RewriteRule ^format-PDF-([0-9]*).html index.php?op=NEPortable&sid=$1
RewriteRule ^envoyer-article-([0-9]*).html index.php?op=NEFriend&sid=$1
RewriteRule ^envoyer-article-([0-9]*).html modules.php?name=News&file=friend&op=FriendSend&sid=$1
RewriteRule ^voir-tous-les-articles.html index.php?op=NEAll
RewriteRule ^index-des-archives.html index.php?op=NEArchive
RewriteRule ^articles.html modules.php?name=News
|
|
|
|
3 - header.php
Dans la partie $urlin = array( :
// News
"'(?<!/)modules.php?name=@@@News&op=NEReply&pid=([0-9]*)&sid=([0-9]*)&mode=([a-zA-Z0-9_]*)&order=([0-9]*)&thold=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php?name=@@@News&new_topic=([0-9]*)'",
"'(?<!/)modules.php?name=@@@News&op=NEArticles&sid=([0-9]*)'",
"'(?<!/)index.php?file=@@@categories&op=newindex&catid=([0-9]*)'",
"'(?<!/)index.php?op=@@@NECategoryList&catid=([0-9]*)'",
"'(?<!/)modules.php?name=@@@News&op=NECategoryList&catid=([0-9]*)'",
"'(?<!/)modules.php?name=@@@News&op=NEArticle&sid=([0-9]*)'",
"'(?<!/)modules.php?name=@@@News&file=topics&op=newindex&topic=([0-9]*)'",
"'(?<!/)index.php?op=@@@NETopics&topic=([0-9]*)'",
"'(?<!/)index.php?op=@@@NETopicMain'",
"'(?<!/)index.php?op=@@@NEArticle&sid=([0-9]*)'",
"'(?<!/)index.php?op=@@@NEPrint&sid=([0-9]*)'",
"'(?<!/)modules.php?name=@@@News&file=print&sid=([0-9]*)'",
"'(?<!/)index.php?op=@@@NEPortable&sid=([0-9]*)'",
"'(?<!/)index.php?op=@@@NEFriend&sid=([0-9]*)'",
"'(?<!/)modules.php?name=@@@News&file=friend&op=FriendSend&sid=([0-9]*)'",
"'(?<!/)index.php?op=@@@NEAll'",
"'(?<!/)index.php?op=@@@NEArchive'",
"'(?<!/)modules.php?name=@@@News'", |
|
dans la partie $urlout = array( :
// News
"articles-commentaire-\1-\2-\3-\4-\5.html",
"articles-du-sujet-\1.html",
"article-\1.html",
"article-categories-\1.html",
"article-categorie-\1.html",
"article-categorie-\1.html",
"article-\1.html",
"articles-du-sujet-\1.html",
"articles-du-sujet-\1.html",
"sujet-menu.html",
"article-\1.html",
"format-imprimable-\1.html",
"format-imprimable-\1.html",
"format-PDF-\1.html",
"envoyer-article-\1.html",
"envoyer-article-\1.html",
"voir-tous-les-articles.html",
"index-des-archives.html",
"articles.html", |
|
Publié le : 2007-07-27 par stefvar, dernière modification le : 2007-07-27 par stefvar(94 lectures) |