All pastes #252743 Raw Edit

Trucs

public text v1 · immutable
#252743 ·published 2006-11-19 22:38 UTC
rendered paste body
RewriteEngine on

ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
ErrorDocument 401 /401.php

RewriteCond %{HTTP_HOST} ^forum-pc.net/*(.*)$
RewriteRule ^(.*) http://www.forum-pc.net/$1  [QSA,L,R=301]

#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http://www.forum-pc.net/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.infos-du-net.com/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://bosco.forum-pc.net/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://blog.forum-pc.net/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://forum.frequence3.fr/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://forum-pc.net/.*$ [NC]
#ReWriteRule .*\.(gif|png|jpe?g)$ - [F]
#ReWriteRule .*\.(gif|png|jpe?g)$ /1205190714.jpg [L]

RewriteRule ^$ /modules/news/ [L]

RewriteRule ^forumeur-([0-9]*).html$ /userinfo.php?uid=$1 [L]

#Forums
RewriteRule ^forums/$ /modules/newbb/ [L]
RewriteRule ^forums/sujet-([0-9]*)-([0-9]*)-(.+).html$ /modules/newbb/viewtopic.php?topic_id=$1&forum=$2 [L]
RewriteRule ^forums/sujet-([0-9]*)-([0-9]*).html$ /modules/newbb/viewtopic.php?topic_id=$1&forum=$2 [L]
RewriteRule ^forums/forum-([0-9]*).html$ /modules/newbb/viewforum.php?forum=$1 [L]
RewriteRule ^forums/forum-([0-9]*)-(.+).html$ /modules/newbb/viewforum.php?forum=$1 [L]
RewriteRule ^forums/reply.php?forum=([0-9]*)&post_id=([0-9]*)&topic_id=([0-9]*)&viewmode=flat&order=([0-9]*)$ http://www.forum-pc.ouba.com/modules/newbb/reply.php?forum=$1&post_id=$2&topic_id=$3&viewmode=flat&order=$4 [L]

#Articles
RewriteRule ^news/$ /modules/news/ [L]
RewriteRule ^news/images/(.*)$ /modules/news/images/$1 [L] 
RewriteRule ^news/article-([0-9]*).html$ /modules/news/article.php?storyid=$1 [L]
RewriteRule ^news/article-([0-9]*)-(.+).html$ /modules/news/article.php?storyid=$1 [L]
RewriteRule ^news/reactions-article-([0-9]*)-(.+).html$ /modules/news/article.php?storyid=$1 [L]
RewriteRule ^news/page-([0-9]*).html$ /modules/news/index.php?start=$1&storytopic=0&storynum=10 [L]
RewriteRule ^news/sujet-([0-9]*).html$ /modules/news/index.php?storytopic=$1 [L]

#Téléchargements
RewriteRule ^fichiers/$ /modules/mydownloads/ [L]
RewriteRule ^fichiers/images/(.*)$ /modules/mydownloads/images/$1 [L]
RewriteRule ^fichiers/details-([0-9]*).html$ /modules/mydownloads/singlefile.php?lid=$1 [L]
RewriteRule ^fichiers/details-([0-9]*)-(.*).html$ /modules/mydownloads/singlefile.php?lid=$1 [L]
RewriteRule ^fichiers/download-([0-9]*).html$ /modules/mydownloads/visit.php?lid=$1 [L]
RewriteRule ^fichiers/download-([0-9]*)-(.*).html$ /modules/mydownloads/visit.php?lid=$1 [L]
RewriteRule ^fichiers/categorie-([0-9]*).html$ /modules/mydownloads/viewcat.php?cid=$1 [L]
RewriteRule ^fichiers/categorie-([0-9]*)-(.*).html$ /modules/mydownloads/viewcat.php?cid=$1 [L]

#Astuces & Tutoriels
RewriteRule ^astuces/$ /modules/nsections/ [L]
RewriteRule ^astuces/images/(.*)$ /modules/nsections/images/$1 [L]
RewriteRule ^astuces/categorie-([0-9]*).html$ /modules/nsections/index.php?op=listarticles&secid=$1 [L]
RewriteRule ^astuces/categorie-([0-9]*)-(.*).html$ /modules/nsections/index.php?op=listarticles&secid=$1 [L]
RewriteRule ^astuces/astuces-([0-9]*).html$ /modules/nsections/index.php?op=viewarticle&artid=$1 [L]
#RewriteRule ^astuces/astuces-([0-9]*)-(.*).html$ /modules/nsections/index.php?op=viewarticle&artid=$1 [L]
RewriteRule ^astuces/imprimer-astuces-([0-9]*).html$ /modules/nsections/index.php?op=printpage&artid=$1 [L]
RewriteRule ^astuces/astuces-([0-9]*)-page-([0-9]*).html$ /modules/nsections/index.php?op=viewarticle&artid=$1&page=$2 [L]
RewriteRule ^astuces/astuces-([0-9]*)-page-([0-9]*)-(.*).html$ /modules/nsections/index.php?op=viewarticle&artid=$1&page=$2 [L]

#Partenaires
RewriteRule ^partenaires/$ /modules/partners/ [L]