Url Courtes et Xanthia
Auteur Sujet

Post 
comme je le decrivai dans un autre Topic PN 761 et ptits bugs
j'avais entre autres un soucis avec les url courtes (heberg Ovh en mutu !)

je l'ai resolu en PARTIE avec ce fichier htaccess legerement different de celui d'origine !

ca passe en url courtes uniquement avec ce fichier ! sinon c err404 ne trouve pas /index.php

  1. # -- To execute php in html 
  2. AddType application/x-httpd-php php php4 php3 html htm 
  3.  
  4. RewriteEngine On 
  5.  
  6. # Exclude certain directories 
  7. RewriteRule ^modules/.*$ - [PT] 
  8. RewriteRule ^themes/.*$ - [PT] 
  9. RewriteRule ^javascript/.*$ - [PT] 
  10.  
  11. # index.php and user.php 
  12. RewriteRule ^changelang-([^-]+)\.html$ /index.php?newlang=$1 [L,NC,NS] 
  13. RewriteRule ^changetheme-([^-]+)\.html$ /index.php?theme=$1 [L,NC,NS] 
  14. RewriteRule ^index\.html$ /index.php [L,NC,NS] 
  15. RewriteRule ^user\.html$ /user.php [L,NC,NS] 
  16.  
  17. # ppnews 
  18. RewriteRule ^ppnews-index\.html$ /index.php?module=ppnews&choix=index [L,NC,NS] 
  19. RewriteRule ^ppnews-([^-]+)\.html$ /index.php?module=ppnews&choix=$1 [L,NC,NS] 
  20.  
  21. # My_eGallery 
  22. RewriteRule ^MeG-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1 [L,NC,NS] 
  23. RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1&$2=$3 [L,NC,NS] 
  24. RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1&$2=$3&$4=$5 [L,NC,NS] 
  25. RewriteRule ^MeG-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=My_eGallery&do=$1&$2=$3&$4=$5&$6=$7 [L,NC,NS] 
  26.  
  27. # NS-User_Points 
  28. RewriteRule ^User_Points\.html$ /modules.php?op=modload&name=NS-User_Points&file=index [L,NC,NS] 
  29.  
  30. # NS-Link_To_Us 
  31. RewriteRule ^Link_To_Us\.html$ /modules.php?op=modload&name=NS-Link_To_Us&file=index [L,NC,NS] 
  32.  
  33. # Polls / Sondaggi 
  34. RewriteRule ^Poll-([0-9]{1,3})([A-Za-z]*)?\.html$ /modules.php?op=modload&name=NS-Polls&file=index&req=$2&pollID=$1 [L,NC,NS] 
  35. RewriteRule ^Polls\.html$ /modules.php?op=modload&name=NS-Polls&file=index [L,NC,NS] 
  36.  
  37. # Private Messages / Messaggi Privati 
  38. RewriteRule ^Messages-outbox\.html$ /modules.php?op=modload&name=Messages&file=outbox [L,NC,NS] 
  39. RewriteRule ^Messages-inbox\.html$ /modules.php?op=modload&name=Messages&file=index [L,NC,NS] 
  40.  
  41. # Search functions (by user and by topic) / Funzioni di ricerca (per utente e per argomento) 
  42. RewriteRule ^Search-author-([^-]+)\.html$ /modules.php?op=modload&name=Search&file=index&action=search&overview=1&active_stories=1&stories_author=$1 [L,NC,NS] 
  43. RewriteRule ^Search-topics-([^-]+)\.html$ /modules.php?op=modload&name=Search&file=index&action=search&overview=1&active_stories=1&stories_topics[0]=$1 [L,NC,NS] 
  44. RewriteRule ^Search-author-([^-]+)-no\.html$ /modules.php?op=modload&name=Search&file=index&action=search&active_stories=1&stories_author=$1 [L,NC,NS] 
  45. RewriteRule ^Search-topics-([^-]+)-no\.html$ /modules.php?op=modload&name=Search&file=index&action=search&active_stories=1&stories_topics[0]=$1 [L,NC,NS] 
  46.  
  47. # daily_archive 
  48. RewriteRule ^daily_archive-([^-]+)\.html$ /index.php?module=daily_archive&func=$1 [L,NC,NS] 
  49. RewriteRule ^daily_archive-([^-]+)-([^-]+)\.html$ /index.php?module=daily_archive&func=display&req=get&year=$1&month=$2 [L,NC,NS] 
  50. RewriteRule ^daily_archive-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=daily_archive&func=display&req=get&year=$1&month=$2&day=$3 [L,NC,NS] 
  51. RewriteRule ^daily_archive-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=daily_archive&func=display&req=get&year=$1&month=$2&day=$3&page=$4 [L,NC,NS] 
  52.  
  53. # News Extension / Estensione News 
  54. RewriteRule ^News-hometopicmore-([0-9]+)\.html$ /modules.php?op=modload&name=News&file=index&catid=&topic=&startrow=$1 [L,NC,NS] 
  55. RewriteRule ^News-topicmore-([0-9]+)-([0-9]+)\.html$ /modules.php?op=modload&name=News&file=index&catid=&topic=$1&startrow=$2 [L,NC,NS] 
  56.  
  57. # PostCalendar 
  58. RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})-event-([0-9]+)\.html$ /index.php?module=PostCalendar&func=view&Date=$3$2$1&tplview=&viewtype=details&eid=$4&print= [L,NC,NS] 
  59. RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})\.html$ /index.php?module=PostCalendar&func=view&tplview=default&viewtype=month&Date=$3$2$1 [L,NC,NS] 
  60. RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})-([A-Za-z]+)-([^-\.]+)\.html$ /index.php?module=PostCalendar&func=view&tplview=$5&viewtype=$4&Date=$3$2$1&pc_username=&pc_category=&pc_topic=&print= [L,NC,NS] 
  61. RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})-([A-Za-z]+)\.html$ /index.php?module=PostCalendar&func=view&tplview=&viewtype=$4&Date=$3$2$1&pc_username=&pc_category=&pc_topic=&print= [L,NC,NS] 
  62. RewriteRule ^PostCalendar-([A-Za-z]+)\.html$ /index.php?module=PostCalendar&func=$1 [L,NC,NS] 
  63.  
  64. # Articles / Articoli 
  65. RewriteRule ^Article([0-9]+)\.html$ /modules.php?op=modload&name=News&file=article&sid=$1&mode=nested&order=0&thold=0 [L,NC,NS] 
  66. RewriteRule ^Article([0-9]+)-([A-Za-z=]+)(-order([0-9]))?(-threshold([0-9\-]{1,2}))?\.html$ /modules.php?op=modload&name=News&file=article&sid=$1&mode=$2&order=$4&thold=$6 [L,NC,NS] 
  67.  
  68. # Recommend us to a friend / Raccomandaci ad un amico 
  69. RewriteRule ^SendArticle([0-9]+)\.html$ /modules.php?op=modload&name=Recommend_Us&file=index&req=FriendSend&sid=$1 [L,NC,NS] 
  70.  
  71. # Sections / Sezioni 
  72. RewriteRule ^Section-([0-9]+)\.html$ /modules.php?op=modload&name=Sections&file=index&req=listarticles&secid=$1 [L,NC,NS] 
  73. RewriteRule ^Sections-article([0-9]+)(-p([0-9]*))?\.html$ /modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=$1&page=$3 [L,NC,NS] 
  74.  
  75. # Print article / Stampa un articolo 
  76. RewriteRule ^PrintArticle([0-9]+)\.html$ /print.php?sid=$1 [L,NC,NS] 
  77.  
  78. # Categories / Categorie 
  79. RewriteRule ^Category([0-9]+)\.html$ /index.php?catid=$1 [L,NC,NS] 
  80. RewriteRule ^Category([0-9]+)-All\.html$ /modules.php?op=modload&name=News&file=index&catid=$1&allstories=1 [L,NC,NS] 
  81.  
  82. # Topics / Argomenti 
  83. RewriteRule ^Topic([0-9]+)\.html$ /modules.php?op=modload&name=News&file=index&catid=&topic=$1 [L,NC,NS] 
  84. RewriteRule ^Topic([0-9]+)all\.html$ /modules.php?op=modload&name=News&file=index&catid=&topic=$1&allstories=1 [L,NC,NS] 
  85.  
  86. FAQ 
  87. RewriteRule ^FAQ-Category([0-9]+)-([^-]+)-Parent([0-9]+)-myfaq-([^-\.]+).html$ /modules.php?op=modload&name=FAQ&file=index&myfaq=$4&id_cat=$1&categories=$2&parent_id=$3 [L,NC,NS] 
  88.  
  89. # Rules for PNphpBB2 / Regole per PNphpBB2 
  90. RewriteRule ^PNphpBB2\.html$ /index.php?name=PNphpBB2&file=index [L,NC,NS] 
  91. RewriteRule ^PNphpBB2-([^-]+)\.html$ /index.php?name=PNphpBB2&file=$1 [L,NC,NS] 
  92. RewriteRule ^PNphpBB2-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=PNphpBB2&file=$1&$2=$3 [L,NC,NS] 
  93. RewriteRule ^PNphpBB2-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=PNphpBB2&file=$1&$2=$3&$4=$5 [L,NC,NS] 
  94. RewriteRule ^PNphpBB2-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=PNphpBB2&file=$1&$2=$3&$4=$5&$6=$7 [L,NC,NS] 
  95. RewriteRule ^PNphpBB2-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=PNphpBB2&file=$1&$2=$3&$4=$5&$6=$7&$8=$9 [L,NC,NS] 
  96.  
  97. # User related URLs / URL relative agli utenti 
  98. RewriteRule ^UserInfo-([^-]+)\.html$ /user.php?op=userinfo&uname=$1 [L,NC,NS] 
  99. RewriteRule ^UserReg\.html$ /user.php?op=register&module=NS-NewUser [L,NC,NS] 
  100. RewriteRule ^UserReg-CheckAge\.html$ /user.php?op=check_age&module=NS-NewUser [L,NC,NS] 
  101. RewriteRule ^User-Login\.html$ /user.php?op=loginscreen&module=NS-User [L,NC,NS] 
  102. RewriteRule ^User-LostPassword\.html$ /user.php?op=lostpassscreen&module=NS-LostPassword [L,NC,NS] 
  103. RewriteRule ^User-Logout\.html$ /user.php?module=NS-User&op=logout [L,NC,NS] 
  104.  
  105. # General rules for modules with index.php?name=... / Regole generali per moduli con index.php?name=... 
  106. RewriteRule ^name-([^-]+)\.html$ /index.php?name=$1&file=index [L,NC,NS] 
  107. RewriteRule ^name-([^-]+)-([^-]+)\.html$ /index.php?name=$1&file=$2 [L,NC,NS] 
  108. RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=$1&file=$2&$3=$4 [L,NC,NS] 
  109. RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=$1&file=$2&$3=$4&$5=$6 [L,NC,NS] 
  110. RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L,NC,NS] 
  111. RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?name=$1&file=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NC,NS] 
  112.  
  113. # General rules for modules with index.php?module=... / Regole generali per moduli con index.php?module=... 
  114. RewriteRule ^module-([^-]+)\.html$ /index.php?module=$1&func=main [L,NC,NS] 
  115. RewriteRule ^module-([^-]+)-([^-]+)\.html$ /index.php?module=$1&func=$2 [L,NC,NS] 
  116. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=$1&func=$2&$3=$4 [L,NC,NS] 
  117. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=$1&func=$2&$3=$4&$5=$6 [L,NC,NS] 
  118. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=$1&func=$2&$3=$4&$5=$6&$7=$8 [L,NC,NS] 
  119. RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /index.php?module=$1&func=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NC,NS] 
  120.  
  121. # General rules for modules with modules.php?op=modload&name=...&file=... / Regole generali per modules.php?op=modload&name=...&file=... 
  122. RewriteRule ^([^-]+)\+([^-]+)\.html$ /modules.php?op=modload&name=$1&file=index&req=$2 [L,NC,NS] 
  123. RewriteRule ^([^-]+)\.html$ /modules.php?op=modload&name=$1&file=index [L,NC,NS] 
  124. RewriteRule ^([^-]+)-([^-]+)\.html$ /modules.php?op=modload&name=$1&file=$2 [L,NC,NS] 
  125. RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /modules.php?op=modload&name=$1&file=$2&$3=$4 [L,NC,NS] 
  126. RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6 [L,NC,NS] 
  127.  
  128. RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L,NC,NS] 
  129. RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ /modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NC,NS] 


avec le fichier outputfilter.shorturls.php mis a jour !

etrange car les modif sont minimes .....
et du coup les pages avec cid-1.html ne fonctionne PAS
donc plus de module Telechargement ni Webliens

je ne trouve pas l'astuce .......

http://www.ziiq.net/Web_Links.html s'affiche
mais pas http://www.ziiq.net/Web_Links-req-viewlink-cid-4.html
(je renvoi sur index du site pour pas avoir de pageERR404)

bizarement http://www.ziiq.net/module-ProdReviews-showcontent-id-1.html s'affiche


...




modifié par : CaptainZiq, 02 Déc 2005 - 00:33

"bonjour chez Vous"
Données personnelles Accueil

Post 
Web_Links-req-viewlink-cid-5.html lien de lla barre de navigation du module ne fonctionne pas !?!
Web_Links-index-req-viewlink-cid-4.html lien dun ancien block (pn726) Fonctionne !!
y acomme une ptite difference

me reste a trouver comment corriger ....

"bonjour chez Vous"
Données personnelles Accueil

Post 
provisoirement j'ai installer les anciens modules Pn750 (Weblinks et download)
...enfin au moins ca marche

"bonjour chez Vous"
Données personnelles Accueil

Post 
en gros, il n'y a pas eu de mise à jour ou une erreur dans la mise à jour du fichier .htacess fourni ??


Gilles  ><>°
Données personnelles Accueil
Post 
Gilles a écrit :
en gros, il n'y a pas eu de mise à jour ou une erreur dans la mise à jour du fichier .htacess fourni ??


nonon

...je decris mon install
serveur vide donc Pn761 "vierge" et base de donne vidée
apres recup de mes principales bases de donnees que j'avais sauvegarder
j'utilisai le theme piterpanV1 NON xanthia Avant
je profite de la mise a jour pour utiliser piterpanV2 Xanthia (avec ptits modif des templates et du Css)
je mets Htaccess fourni avec Xanthia pn761
...
Err404 trouve par index-php !

je mets a jour outputfilter.shorturls.php et htaccess sur conseil de Chesnut!
pareil Err 404

je tente de REuploader tout mes fichiers ...au cas ou un uploader avait plante !!
ca change rien !

je tente d'utiliser mon ancien htaccess (proviend d'un hack pour pn726 "ShortUrl")
ca marche qu'en partie ! et je donne le detail +haut car semble qu'entre les 2 fichiers y a une ptite difference

tout mes modules marchaient SAUF download et Weblinks !
l'index des modules s'affichaient mais les categories ne s'affichent pas !! Err404 !

du coup j'ai mis mes anciens modules Download et Weblinks !
eux marchent avec pn761 et url courte de Xanthia !¿!

htaccess fourni avec Xanthia pn761 me donne comme lien
Web_Links-req-viewlink-cid-4.html
mon ancien htaccess qui lui fonctionne affiche le lien :
Web_Links-index-req-viewlink-cid-4.html

voila ...et j'ai pas trouve comme resoudre ca !
chercher dans les modules Dowload ou Weblink ?
j'zui pas sur ...en tout cas j'ai pas assez de connaissance pour aller Bcp plus loin





modifié par : CaptainZiq, 03 Déc 2005 - 23:47

"bonjour chez Vous"
Données personnelles Accueil