Aspirant
Inscrit: 03/03/2006 22:36
|
Bonjour à tous, Je suis en train de me prendre la tête sur mon site, pour tout passer en url html avec le rewriting et je dois dire que je m'en sort pas trop mal, mais je block avec certain modules. Quelqu'un pourrait-il m'expliquer la différence entre ces 2 lignes : Citation :"'(?<!/\/)index.php\" '", "'(?<!/\/)index.php\' '", Il y a un ' à la place d'un " à la 2eme ligne à la fin, mais ca change quoi en gros ??? J'ai parcouru pas mal de tuto, mais aucun ne parle de ce genre de chose... Ensuite, pourquoi certaine ligne ont besoin de /\ et d'autres seulement de / et encore d'autres aucun des 2 ? Enfin, voilà, je nage pas mal, même après avoir lus les tutos, ici et ailleurs... Voici mon .htaccess pour vous donner une idée Citation : #Mod Rewrite for Xoops #Author Kenogui - kenogui@bloodbowl-fr.com Options +FollowSymlinks RewriteEngine On
RewriteRule ^index.html$ index.php [L]
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.facile-pc.com/.*$ [NC] ReWriteRule .*\.(gif|png|jpe?g)$ - [F]
#Articles RewriteRule ^actus$ /modules/news/ [L] RewriteRule ^actus/news-([0-9]+).html$ modules/news/article.php?storyid=$1 [L] RewriteRule ^actus/news-cat-([0-9]+)-start-([0-9]+).html$ modules/news/index.php?storytopic=$1&start=$2 [L] RewriteRule ^actus/news-([0-9]+)-page-([0-9]+).html$ modules/news/article.php?storyid=$1&page=$2 [L] RewriteRule ^actus/news-cat-([0-9]+).html$ modules/news/index.php?storytopic=$1 [L] RewriteRule ^actus/news-print-([0-9]+).html$ modules/news/print.php?storyid=$1 [L] RewriteRule ^actus/archive.html$ modules/news/archive.php [L] RewriteRule ^actus/archive-([0-9]+)-([0-9]+).html$ modules/news/archive.php?year=$1&month=$2 [L] RewriteRule ^actus/faire-un-pdf-([0-9]+).html$ modules/news/makepdf.php?storyid=$1 [L]
#WFSection RewriteRule ^tutoriaux$ /modules/wfsection/ [L] RewriteRule ^tutoriaux/cat-([0-9]+).html$ modules/wfsection/index.php?category=$1 [L] RewriteRule ^tutoriaux/dossiers-cat-([0-9]+).html$ modules/wfsection/viewarticles.php?category=$1 [L] #celle là me pose problème RewriteRule ^tutoriaux/dossiers-([0-9]+).html$ modules/wfsection/article.php?articleid=$1 [L] RewriteRule ^tutoriaux/page-([0-9]+)-dossiers-([0-9]+).html$ modules/wfsection/article.php?page=$1&articleid=$2 [L]
#SmartFAQ RewriteRule ^astuces$ /modules/smartfaq/ [L] RewriteRule ^astuces/cat-([0-9]+).html$ modules/smartfaq/category.php?categoryid=$1 [L] RewriteRule ^astuces/astuces-([0-9]+).html$ modules/smartfaq/faq.php?faqid=$1 [L]
Et mon Modregexp.php Citation : //each urlin need a line in urlout $urlin = array( "'(?<!/\/)modules/news/\"'", "'(?<!/\/)news/\"'", "'(?<!/\/)index.php\"'", "'(?<!/\/)index.php\''", "'(?<!/\/)modules/news/article.php\?storyid=([0-9]*)\''", "'(?<!/\/)article.php\?storyid=([0-9]*)\''", "'(?<!/\/)modules/news/article.php\?storyid=([0-9]*)&page=([0-9]*)'", "'(?<!/\/)modules/news/index.php\?storytopic=([0-9]*)&start=([0-9]*)'", "'(?<!/\/)modules/news/index.php\?storytopic=([0-9]*)'", "'(?<!/\/)modules/news/print.php\?storyid=([0-9]*)'", "'(?<!/\/)modules/news/archive.php\"'", "'(?<!/\/)modules/news/archive.php\?year=([0-9]*)&month=([0-9]*)'", "'(?<!/\/)modules/news/makepdf.php\?storyid=([0-9]*)'", "'(?<!/\/)modules/wfsection/\"'", "'(?<!/\/)wfsection/\"'", "'(?<!/\/)index.php\"'", "'(?<!/\/)index.php\''", "'(?<!/\/)modules/wfsection/index.php\?category=([0-9]*)'", "'(?<!/\/)index.php\?category=([0-9]*)'", "'(?<!/\/)modules/wfsection/viewarticles.php?category=([0-9]*)'", "'(?<!/\/)viewarticles.php?category=([0-9]*)'", "'(?<!/\/)modules/wfsection/article.php\?articleid=([0-9]*)'", "'(?<!/\/)modules/wfsection/article.php\?page=([0-9]*)&articleid=([0-9]*)\''", "'(?<!/\/)modules/smartfaq/\"'", "'(?<!/\/)smartfaq/\"'", "'(?<!/\/)index.php\"'", "'(?<!/\/)index.php\''", );
$urlout = array( "actus\"", "../../actus/\"", "../../actus/\"", "../../actus/'", "actus/news-\\1.html'", "../../actus/news-\\1.html'", "actus/news-\\1-page-\\2.html", "actus/news-cat-\\1-start-\\2.html", "actus/news-cat-\\1.html", "actus/news-print-\\1.html", "actus/archive.html\"", "actus/archive-\\1-\\2.html", "actus/faire-un-pdf-\\1.html\"", "tutoriaux\"", "../../tutoriaux/\"", "../../tutoriaux/\"", "../../tutoriaux/'", "tutoriaux/cat-\\1.html", "../../tutoriaux/cat-\\1.html", "tutoriaux/dossiers-cat-\\1.html", "../../tutoriaux/dossiers-cat-\\1.html", "tutoriaux/dossiers-\\1.html", "tutoriaux/page-\\1-dossiers-\\2.html'", "astuces\"", "../../astuces/\"", "../../astuces/\"", "../../astuces/'", );
Une dernière chose étrange, tous les liens vers les sections d'administration de chaque module présent en bas de page de leurs page d'accueil respective pointent vers " http://www.facile-pc.com/modules/actus/" ..... comprends pas Merci d'avance
Posté le : 04/02/2007 21:04
|