Re-ecriture d URL : Journal
| 1 - Sommaire |
Tout le nécessaire à la réécriture d'URL pour le module Journal.
Cela nécessite d'avoir le mod_rewrite d'activé chez votre hébergeur. |
|
| 2 - htaccess |
#Journal
RewriteRule ^journal-recherche-([a-zA-Z0-9]*).html modules.php?name=Journal&file=search&bywhat=aid&exact=1&forwhat=$1
RewriteRule ^journal(search|delete|commentkill)-(bywhat|jid|onwhat)([a-zA-Z0-9]*)-(forwhat|ref)([a-zA-Z0-9]*).html modules.php?name=Journal&file=$1&$2=$3&$4=$5
RewriteRule ^journal-([a-zA-Z0-9+]*)-(jid|onwhat|disp|op|disp)-([a-zA-Z0-9+]*).html modules.php?name=Journal&file=$1&$2=$3
RewriteRule ^journal(file|op)-([a-zA-Z0-9]*).html modules.php?name=Journal&$1=$2
RewriteRule ^journal.html modules.php?name=Journal
|
|
|
|
3 - header.php
Dans la partie $urlin = array( :
// journal
"'(?<!/)modules.php?name=@@@Journal&file=search&bywhat=aid&exact=1&forwhat=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php?name=@@@Journal&file=(search|delete|commentkill)&(bywhat|jid|onwhat)=([a-zA-Z0-9]*)&(forwhat|ref)=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php?name=@@@Journal&file=([a-zA-Z0-9+]*)&(jid|onwhat|disp|op|disp)=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php?name=@@@Journal&(file|op)=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php?name=@@@Journal'", |
|
dans la partie $urlout = array( :
// Journal
"journal-recherche-\1.html",
"journal\1-\2\3-\4\5.html",
"journal-\1-\2-\3.html",
"journal\1-\2.html",
"journal.html", |
|
Publié le : 2007-07-27 par stefvar, dernière modification le : 2007-07-27 par stefvar(68 lectures) |