I'll give mine
the order is important.
Code: Select all
RewriteEngine On
RewriteRule ^article/([0-9]+)/xml/(.*)\.xml /xml/$2\.xml
RewriteRule ^article/([0-9]+)/pdf/(.*)\.pdf /pdf/$2\.pdf
RewriteRule ^article/([0-9]+)/([0-9]+)-(en|fr)\.html$ /index.php?action=artikel&cat=$1&id=$2&artlang=$3 [L]
RewriteRule ^article/([0-9]+)/([0-9]+)-(en|fr)\.pdf /pdf.php?id=$2&lang=$3
RewriteRule ^article/([0-9]+)/([0-9]+)-(en|fr)\.xml /index.php?action=xml&id=$2&artlang=$3
RewriteRule ^article/([0-9]+)/([0-9]+)-(en|fr)/send\.html$ /index.php?action=send2friend&cat=$1&id=$2&artlang=$3
RewriteRule ^article/([0-9]+)/([0-9]+)-(en|fr)/comment\.html /index.php?action=writecomment&cat=$1&id=$2&artlang=$3
RewriteRule ^article/([0-9]+)/ /index.php?action=show&cat=$1
RewriteRule ^article/ /index.php?action=show
RewriteRule ^contact/ /index.php?action=contact
RewriteRule ^question/ /index.php?action=ask
RewriteRule ^search/ /index.php?action=search
NB there is some hack with some external script. If you want the sources mail me through contact on my website.
NB2: I remove the version of phpmyfaq on my website for security reason: If a SQL injection is discovered, a simple script that get answer from google will launch automatic attack on all the website.