#RewriteBase /
DirectoryIndex index.php index.html

#Anti Listage
Options -Indexes

# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|bin|spd|theme|module)$">
deny from all
</FilesMatch>

<Files ~"\.ht$">
Order Allow,Deny
deny from all
Satisfy All
</Files>

# Interdire la lecture/criture des fichiers index - config - admin
<Files ~"\index.php$">
deny from all
</Files>

<Files ~"\admin.php$">
deny from all
</Files>

<Files ~"\config.php$">
deny from all
</Files>

<Limit GET PUT POST>
  Order Allow,Deny
   deny from 200.
  Allow from all
</Limit>


# Gestion des pages errones, si vous tes en rpertoire alors rajouter le, exemple: /REPERTOIRE/index.php?p=400
ErrorDocument 400 /index.php
ErrorDocument 401 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
ErrorDocument 405 /index.php
ErrorDocument 406 /index.php
ErrorDocument 408 /index.php
ErrorDocument 410 /index.php
ErrorDocument 411 /index.php
ErrorDocument 414 /index.php
ErrorDocument 500 /index.php
ErrorDocument 503 /index.php


<Limit GET PUT POST>
  Order Allow,Deny
  Allow from all
</Limit>

RewriteEngine on

#RewriteCond %{HTTP_HOST} !^www\.votre_site\.votre_extention [NC]
#RewriteRule (.*) http://www.votre_site.votre_extention/$1 [QSA,R=301,L]

#The next lines check for Email Spammers Robots and redirect them to a fake page
RewriteCond %{HTTP_USER_AGENT} ^-?$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^ADSARobot|^Advanced\ Email\ Extractor|^Alexibot|^Anarchie|^@nonymouse|^Art-Online|^ASPSeek|^asterias|^Atomz       [OR]

RewriteCond %{HTTP_USER_AGENT} ^ah-ha|^aktuelles|^almaden|^amzn_assoc|^ASSORT|^attach|^attache|^autoemailspider      [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^BackWeb|^Bandit|^BatchFTP|^BackDoorBot|^Black.Hole|^BlackWidow|^BlowFish|^Boston\ Project|^BotALot|^Boston\ Project|^BravoBrian\ SpiderEngine\ MarcoPolo|^Buddy|^BuiltBotTough|^Bullseye|^BunnySlippers                        [OR]

RewriteCond %{HTTP_USER_AGENT} ^bdfetch|^big.brother|^bmclient|^bumblebee                  [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^capture|^Cegbfeieh|^CheeseBot|^CherryPicker|^ChinaClaw|^CICC|^CopyRightCheck|^cosmos|^Crescent|^Crescent\ Internet\ ToolPak|^Custo|cyberalert                     [OR]

RewriteCond %{HTTP_USER_AGENT} ^clipping                [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Deweb|^diagem|^disco|^DTS.Agent                      [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Digger|^Digimarc|^DIIbot|^DirectUpdate|^DISCo|^DISCoFinder|^DittoSpyder|^Download\ Accelerator|^Download\ Demon|^Download\ Wonder|^Downloader|^Drip|^DSurf15a                        [OR]

RewriteCond %{HTTP_USER_AGENT} ^EasyDL|^eCatch|^echo\ extense|^efp@gmx\.net|^EirGrabber|^Email\ Extractor|^EmailCollector|^EmailSiphon|^EmailWolf|^EroCrawler|^Express\ WebPictures|^ExtractorPro|^EyeNetIE                       [OR]

RewriteCond %{HTTP_USER_AGENT} ^ecollector              [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^fastlwspider|^Favorites\ Sweeper|^Fetch|^FEZhead|^fluffy|^FrontPage              [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^FavOrg|^Fetch\ API\ Request|^FileHound|^FlashGet|^FlashGet\ WebWasher|^FlickBot|^Foobot                     [OR]

RewriteCond %{HTTP_USER_AGENT} ^GalaxyBot               [OR]
RewriteCond %{HTTP_USER_AGENT} ^Generic|^Getleft|^GetWebPage|^Girafabot|^Grabber                    [NC,OR]
RewriteCond %{HTTP_USER_AGENT}                 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight|^GetSmart|^GetWeb!|^gigabaz|^Go-Ahead-Got-It|^Go!Zilla|^GornKer|^GrabNet|^Grafula|^Green\ Research                      [OR]

RewriteCond %{HTTP_USER_AGENT} ^Harvest|^hloader|^HomePageSearch|^HMView|^HtmlParser|^HTTP\ agent|^HTTPConnect|^httpdown|^http\ generic|^httplib|.*HTTrack*.|HTTrack|^humanlinks                 [OR]
RewriteCond %{HTTP_USER_AGENT} ^hhjhj@yahoo|^HTTrack              [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^ia_archiver|^IBM_Planetwide|^Image\ Stripper|^Image\ Sucker|^imagefetch|.*Indy.*|^InfoNaviRobot|^InterGET|^Internet\ Ninja|^InternetLinkAgent|^InternetSeer\.com|^IPiumBot\ laurion(dot)com|^Iria|^Irvine                [OR]

RewriteCond %{HTTP_USER_AGENT} ^Indy\ Library|^IncyWincy|^informant           [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^JBH*Agent|^JennyBot|^JetCar|^JOC\ Web\ Spider|^JustView|^Kapere|^Kenjin.Spider|^Keyword.Density                   [OR]

RewriteCond %{HTTP_USER_AGENT} ^KWebGet             [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Lachesis|^larbin|^LeechFTP|^LexiBot|^lftp|^libWeb/clsHTTP|^libwww|^libwww-perl|^LinkextractorPro|^LinkScan/8.1a.Unix|^Link*Sleuth|^LINKS\ ARoMATIZED|^LinkWalker|^lwp-trivial                   [OR]

RewriteCond %{HTTP_USER_AGENT} ^likse|^LWP                   [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Magnet|^Mac\ Finder|^Mag-Net|^Mass\ Downloader|^Mata.Hari|^MIDown\ tool|^Microsoft\ URL\ Control|^Microsoft.URL|^MIDown\ tool|^MIIxpc|^minibot\(NaverRobot\)|^Missigua\ Locator|^Mister.PiX|^Mister\ PiX|^MMMtoCrawl\/UrlDispatcherLLL|^moget|^Mozilla/2|^Mozilla/3.Mozilla/2.01|^Mozilla.*NEWT|^MSProxy                     [OR]

RewriteCond %{HTTP_USER_AGENT} ^MCspider|^Mirror|^multithreaddb                [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^nationaldirectory|^NetCarta|^netprospector|^NetResearchServer|^NEWT          [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad|^NearSite|^NetAnts|^NetMechanic|^NetSpider|^Net\ Vampire|^NetZIP|^NetZip\ Downloader|^NetZippy|^NICErsPRO|^NPBot                       [OR]

RewriteCond %{HTTP_USER_AGENT} ^Octopus|^Offline.Explorer|^Offline\ Explorer|^Offline\ Navigator|^Openfind                  [OR]

RewriteCond %{HTTP_USER_AGENT} ^OpaL|^OpenTextSiteCrawler|^OrangeBot                     [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^PackRat                 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber|^Papa\ Foto|^pavuk|^PersonaPilot|^pcBrowser|^PingALink|^Pockey|^Program\ Shareware|^ProPowerBot/2.14|^ProWebWalker|^Proxy|^psbot|^Pump                   [OR]

RewriteCond %{HTTP_USER_AGENT} ^PSurf|^puf|^PushSite                    [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^QuepasaCreep|^QRVA|^QueryN.Metasearch            [OR]

RewriteCond %{HTTP_USER_AGENT} ^RealDownload|^Reaper|^Recorder|^ReGet|^RepoMonkey|^RMA|^RPT-HTTPClient                [OR]

RewriteCond %{HTTP_USER_AGENT} ^replacer|^Robozilla|^Rover|^Rsync                   [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^SearchExpress|^Second\ Street\ Research|^Seeker|^SiteMapper|^SiteSnagger|^SlySearch|^SmartDownload|^SpaceBison|^SpankBot|^spanner|^SqWorm|^Star\ Downloader|^Stripper|^Sucker|^SuperBot|^SuperHTTP|^Surfbot|^SurveyBot|^suzuran|^Szukacz/1.4               [OR]
RewriteCond %{HTTP_USER_AGENT} ^searchhippo|^searchterms\.it|^Shai|^sitecheck|^snagger|^Spegla|^SpiderBot|^SurfWalker                [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^tAkeOut|^Teleport|^Teleport\ Pro|^Telesoft|^The.Intraformant|^TheNomad|^TightTwatBot|^Titan|^toCrawl/UrlDispatcher|^toCrawl/UrlDispatcher|^True_Robot|^turingos|^TurnitinBot|^TurnitinBot/1.5|^TV33_Mercator                   [OR]
RewriteCond %{HTTP_USER_AGENT} ^tarspider|^Templeton               [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^UIowaCrawler|^UtilMind             [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^URL_Spider_Pro|^URLy.Warning           [OR]

RewriteCond %{HTTP_USER_AGENT} ^Vacuum|^VCI|^VoidEYE                  [OR]
RewriteCond %{HTTP_USER_AGENT} ^vagabondo|^vayala|^visibilitygap|^vobsub|^vspider               [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^w3mir|^web\.by\.mail|^webcollector|^webcraft@bea|^webdevil|^webdownloader|^Web\ Data\ Extractor|^WEBMASTERS|^WebMiner|^webmole|^WebSnake|^websucker|^webvac|^webwalk|^webweasel|^whizbang|^WhosTalking|^WISEbot|^Wysigot|^WUMPUS                     [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^WebAuto|^WebBandit|^WebCapture|^webcollage|^WebCopier|^Webclipping|^WebCopier|^Webdup|^Web\ Downloader|^WebDAV|^WebEMailExtrac.*|^WebEnhancer|^WebFetch|^WebGo\ IS|^WebHook|^Web.Image.Collector|^Web\ Image\ Collector|^Webinator|^WebLeacher|^WebmasterWorldForumBot|^WebMirror|^WebReaper|^WebSauger|^WEBsaver|^Website\ eXtractor|^Website.Quester|^Website\ Quester|^Webster|^Webster.Pro|^WebStripper|^Web\ Sucker|^WebWhacker|^WebZip|^Wget|^Widow|^[Ww]eb[Bb]andit|^Wweb|^WWW-Collector-E|^WWWOFFLE                     [OR]

RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider|^Xenu's|^x-Tractor   [OR]
RewriteCond %{HTTP_USER_AGENT} ^XGET                                   [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteCond %{HTTP_REFERER}    ^XXX
RewriteCond %{HTTP_USER_AGENT} [0-9A-Za-z]{15,}|^[0-9A-Za-z]+$         [OR]

# attake phpbb
RewriteCond %{HTTP_USER_AGENT} ^LWP|^visualcoders|^envidiosos|^civa|^filepack.superbr.org|rush=([^&]+)|^(.*)wget(.*) [NC,OR]

#Check for AWStats exploits and redirect them to a phantom site
RewriteCond %{QUERY_STRING} ^(.*)configdir(.*) [NC]

# Un hte qui tente de se cacher dans une reverse DNS lookup
RewriteCond %{REMOTE_HOST} ^private$ [NC,OR]

# Sites de surveillance du Web (peut ncessiter ipchains)
RewriteCond %{HTTP_USER_AGENT} traffixer|netfactual|netcraft [NC,OR]

# Un faux referrer souvent utilis
RewriteCond %{HTTP_USER_AGENT} ^[^?]*iaea\.org [NC,OR]

# Le referrer "addresses.com" est utilis par un email address extractor
RewriteCond %{HTTP_USER_AGENT} ^[^?]*addresses\.com [NC,OR]

# Un faux referrer utilis en conjonction avec un formmail exploits
RewriteCond %{HTTP_USER_AGENT} ^[^?]*\.ideography\.co\.uk [NC]
RewriteRule .*$ http://www.internet.org [R,L]


#Articles
RewriteRule ^([a-zA-Z0-9_]*)_article_topic_([0-9]*)_([0-9]*).html modules.php?name=News&min=$2&file=topics&topic=$3
RewriteRule ^([a-zA-Z0-9_]*)_article_new_topic_([0-9]*).html modules.php?name=News&new_topic=$2
RewriteRule ^([a-zA-Z0-9_]*)_article_topic_([0-9]*).html modules.php?name=?name=News&file=topics&topic=$2
RewriteRule ^([a-zA-Z0-9_]*)_article_read_([0-9]*)_([a-z]*)_([0-9]*)_([0-9]*).html modules.php?name=News&file=read_article&sid=$2&mode=$3&order=$4&thold=$5
RewriteRule ^([a-zA-Z0-9_]*)_article_print_([0-9]*).html modules.php?name=News&file=print&sid=$2
RewriteRule ^([a-zA-Z0-9_]*)_article_pdf_([0-9]*).html modules.php?name=News&op=pdf&sid=$2
RewriteRule ^([a-zA-Z0-9_]*)_article_send_([0-9]*).html modules.php?name=News&file=friend&op=FriendSend&sid=$2
RewriteRule ^([a-zA-Z0-9_]*)_article_comments_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=News&file=comments&op=Reply&pid=$2&sid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^([a-zA-Z0-9_]*)_article_comments_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=News&file=comments&tid=$2&sid=$3&mode=&order=$4&thold=$5
RewriteRule ^([a-zA-Z0-9_]*)_article_showreply_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=News&file=comments&op=showreply&tid=$2&sid=$3&pid=$4mode=$5&order=$6&thold=$7
RewriteRule ^([a-zA-Z0-9_]*)_article_parent_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=News&file=comments&sid=$2&pid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^([a-zA-Z0-9_]*)_article_comments.html modules.php?name=News&file=comments
RewriteRule ^([a-zA-Z0-9_]*)_article_index_([a-zA-Z0-9]*)_([0-9]*).html modules.php?name=News&file=categories&op=$2&catid=$3
RewriteRule ^([a-zA-Z0-9_]*)_article_([0-9]*)_([a-z]*)_([0-9]*)_([0-9]*).html modules.php?name=News&file=article&sid=$2&mode=$3&order=$4&thold=$5
RewriteRule ^([a-zA-Z0-9_]*)_article_([1-9][0-9]*).html modules.php?name=News&file=article&sid=$2
RewriteRule ^([a-zA-Z0-9_]*)_article_allindex.html modules.php?name=News&file=allindex
RewriteRule ^([a-zA-Z0-9_]*)_article.html modules.php?name=News

#Banner_Ads
RewriteRule ^([a-zA-Z0-9_]*)_banner_stop_([0-9]*).html modules.php?name=Banner_Ads&stop=$2
RewriteRule ^([a-zA-Z0-9_]*)_banner_logout.html modules.php?name=Banner_Ads&op=BALogout
RewriteRule ^([a-zA-Z0-9_]*)_banner_gfx_([0-9]*).html modules.php?name=Banner_Ads&op=BAgfx&random_num=$2
RewriteRule ^([a-zA-Z0-9_]*)_banner_image_view_([0-9]*).html modules.php?name=Banner_Ads&op=BAImageView&bid=$2
RewriteRule ^([a-zA-Z0-9_]*)_banner_image_mail_([0-9]*).html modules.php?name=Banner_Ads&op=BAImageMail&bid=$2
RewriteRule ^([a-zA-Z0-9_]*)_banner_image_edit_([0-9]*).html modules.php?name=Banner_Ads&op=BAImageEdit&bid=$2
RewriteRule ^([a-zA-Z0-9_]*)_banner_image_list.html modules.php?name=Banner_Ads&op=BAImageList
RewriteRule ^([a-zA-Z0-9_]*)_banner_client_view.html modules.php?name=Banner_Ads&op=BAClientView
RewriteRule ^([a-zA-Z0-9_]*)_banner_client_passlost.html modules.php?name=Banner_Ads&op=BAClientPassLost
RewriteRule ^([a-zA-Z0-9_]*)_banner_client_new.html modules.php?name=Banner_Ads&op=BAClientNew
RewriteRule ^([a-zA-Z0-9_]*)_banner_client_edit.html modules.php?name=Banner_Ads&op=BAClientEdit
RewriteRule ^([a-zA-Z0-9_]*)_banner.html modules.php?name=Banner_Ads

#Content
RewriteRule ^([a-zA-Z0-9_]*)_content_id_([1-9][0-9]*)_page_([1-9][0-9]*).html modules.php?name=Content&pa=showpage&pid=$2&page=$3
RewriteRule ^([a-zA-Z0-9_]*)_content_id_([1-9][0-9]*).html modules.php?name=Content&pa=showpage&pid=$2
RewriteRule ^([a-zA-Z0-9_]*)_content_cat_([1-9][0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$2
RewriteRule ^([a-zA-Z0-9_]*)_content.html modules.php?name=Content

#Copyrights
RewriteRule ^([a-zA-Z0-9_]*)_mentions_legales_maximus.html modules.php?name=Copyrights&op=legalsmentions
RewriteRule ^([a-zA-Z0-9_]*)_copyrights_maximus.html modules.php?name=Copyrights

#Feedback
RewriteRule ^([a-zA-Z0-9_]*)_feedback.html modules.php?name=Feedback

#Forums
RewriteRule ^([a-zA-Z0-9_]*)_valid_post_([0-9]*)_([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$2&watch=topic&start=$3
RewriteRule ^([a-zA-Z0-9_]*)_post_t_([0-9]*)_(previous|newest|next).html modules.php?name=Forums&file=viewtopic&t=$2&view=$3
RewriteRule ^([a-zA-Z0-9_]*)_unvalid_post_([0-9]*)_([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$2&unwatch=topic&start=$3
RewriteRule ^([a-zA-Z0-9_]*)_posts_viewtopic_([0-9]+)_([0-9]+)_([0-9]+)_([a-zA-Z0-9]*).html modules.php?name=Forums&file=viewtopic&t=$2&start=$3&postdays=$4&postorder=asc&highlight=$5
RewriteRule ^([a-zA-Z0-9_]*)_post_t_([0-9]*)_page_([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$2&start=$3&sid=$4
RewriteRule ^([a-zA-Z0-9_]*)_posts_([0-9]*)_([0-9]*).html  modules.php?name=Forums&file=viewtopic&t=$2&start=$3
RewriteRule ^([a-zA-Z0-9_]*)_postx_([0-9]+)_result_([0-9]+).html modules.php?name=Forums&file=viewtopic&t=$2&postdays=$3&postorder=asc&vote=$4
RewriteRule ^([a-zA-Z0-9_]*)_postx_([0-9]+)_([0-9]+)_([0-9]+).html modules.php?name=Forums&file=viewtopic&t=$2&postdays=$3&postorder=asc&start=$4
RewriteRule ^([a-zA-Z0-9_]*)_postlite_(p|t)_([0-9]*)_([a-zA-Z0-9]*).html modules.php?name=Forums&file=viewtopic&$2=$3&highlight=$4
RewriteRule ^([a-zA-Z0-9_]*)_postlite_(p|t)_([0-9]*).html modules.php?name=Forums&file=viewtopic&$2=$3&highlight=
RewriteRule ^([a-zA-Z0-9_]*)_post_(p|t)_([1-9][0-9]*).html modules.php?name=Forums&file=viewtopic&$2=$3
RewriteRule ^([a-zA-Z0-9_]*)_forums_online.html modules.php?name=Forums&file=viewonline
RewriteRule ^([a-zA-Z0-9_]*)_forumx_([0-9]+)_([0-9]+)_([0-9]+).html modules.php?name=Forums&file=viewforum&f=$2&topicdays=$3&start=$4
RewriteRule ^([a-zA-Z0-9_]*)_forum_([0-9]+)_start_([0-9]+).html modules.php?name=Forums&file=viewforum&f=$2&start=$3
RewriteRule ^([a-zA-Z0-9_]*)_markread_([0-9]*).html modules.php?name=Forums&file=viewforum&f=$2&mark=topics
RewriteRule ^([a-zA-Z0-9_]*)_forum_([1-9][0-9]*).html modules.php?name=Forums&file=viewforum&f=$2
RewriteRule ^([a-zA-Z0-9_]*)_forum.html modules.php?name=Forums&file=viewforum
RewriteRule ^([a-zA-Z0-9_]*)_forums_search_result_(egosearch|newposts|unanswered).html modules.php?name=Forums&file=search&search_id=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_search_results_([0-9]*)_([0-9]*).html modules.php?name=Forums&file=search&search_id=$2&start=$3
RewriteRule ^([a-zA-Z0-9_]*)_forums_search_author_([/:\-\'(){}.&=_a-zA-Z0-9]*)_topics.html modules.php?name=Forums&file=search&search_author=$2&showresults=topics
RewriteRule ^([a-zA-Z0-9_]*)_forums_search_author_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Forums&file=search&search_author=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_search_user_([0-9]*).html modules.php?name=Forums&file=search&mode=searchuser&popup=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_search_results.html modules.php?name=Forums&file=search&mode=result
RewriteRule ^([a-zA-Z0-9_]*)_forums_search.html modules.php?name=Forums&file=search
RewriteRule ^([a-zA-Z0-9_]*)_forums_smilies.html modules.php?name=Forums&file=quick_reply&mode=smilies
RewriteRule ^([a-zA-Z0-9_]*)_forums_viewprofile_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Forums&file=profile&mode=viewprofile&u=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_email_([0-9]*).html modules.php?name=Forums&file=profile&mode=email&u=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_register.html modules.php?name=Forums&file=profile&mode=register
RewriteRule ^([a-zA-Z0-9_]*)_forums_profile.html modules.php?name=Forums&file=profile&mode=editprofile
RewriteRule ^([a-zA-Z0-9_]*)_forums_profil.html modules.php?name=Forums&file=profile
RewriteRule ^([a-zA-Z0-9_]*)_forums_post_([0-9]*).html modules.php?name=Forums&file=posting&t=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_topicreview_([0-9]*)_([0-9]*).html modules.php?name=Forums&file=posting&mode=topicreview&t=$2&popup=$3
RewriteRule ^([a-zA-Z0-9_]*)_forums_smilies_([0-9]*).html modules.php?name=Forums&file=posting&mode=smilies&popup=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_post_(delete|editpost|newtopic|quote|reply|vote)_(p|p|f|p|t|t)_([0-9]*).html modules.php?name=Forums&file=posting&mode=$2&$3=$4
RewriteRule ^([a-zA-Z0-9_]*)_forums_posting.html modules.php?name=Forums&file=posting
RewriteRule ^([a-zA-Z0-9_]*)_forums_modcp_mode_([0-9]*)_(delete|lock|move|merge|split|unlock).html modules.php?name=Forums&file=modcp&t=$2&mode=$3
RewriteRule ^([a-zA-Z0-9_]*)_forums_modcp_mode_split_([0-9]*).html modules.php?name=Forums&file=modcp&mode=split&t=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_modcp_mode_ip_dns_([0-9]*)_([0-9]*)_([.a-zA-Z0-9]*).html modules.php?name=Forums&file=modcp&mode=ip&p=$2&t=$3&rdns=$4
RewriteRule ^([a-zA-Z0-9_]*)_forums_modcp_mode_ip_([0-9]*)_([0-9]*).html modules.php?name=Forums&file=modcp&mode=ip&p=$2&t=$3
RewriteRule ^([a-zA-Z0-9_]*)_forums_modcp_([0-9]*).html modules.php?name=Forums&file=modcp&f=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_modcp.html modules.php?name=Forums&file=modcp
RewriteRule ^([a-zA-Z0-9_]*)_forums_mark.html modules.php?name=Forums&file=index&mark=forums
RewriteRule ^([a-zA-Z0-9_]*)_forums_index_([0-9]*).html modules.php?name=Forums&file=index&c=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums.html modules.php?name=Forums&file=index
RewriteRule ^([a-zA-Z0-9_]*)_forums_groupcp_([0-9]*).html modules.php?name=Forums&file=groupcp&g=$2
RewriteRule ^([a-zA-Z0-9_]*)_forums_groupcp.html modules.php?name=Forums&file=groupcp
RewriteRule ^([a-zA-Z0-9_]*)_forums_faq_bbcode.html modules.php?name=Forums&file=faq&mode=bbcode
RewriteRule ^([a-zA-Z0-9_]*)_forums_faq.html modules.php?name=Forums&file=faq
RewriteRule ^([a-zA-Z0-9_]*)_forums_card.html modules.php?name=Forums&file=card

#Downloads
RewriteRule ^([a-zA-Z0-9_]*)_downloads_search_([/:\-\'(){}.&=_a-zA-Z0-9]*)_(titleA|titleD|dateA|dateD|hitsA|hitsD).html modules.php?name=Downloads&op=search&query=$2&orderby=$3
RewriteRule ^([a-zA-Z0-9_]*)_downloads_search_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Downloads&op=search&query=$2
RewriteRule ^([a-zA-Z0-9_]*)_downloads_mostpopular_([0-9]*)_(num|percent).html modules.php?name=Downloads&op=MostPopular&ratenum=$2&ratetype=$3
RewriteRule ^([a-zA-Z0-9_]*)_downloads_mostpopular.html modules.php?name=Downloads&op=MostPopular
RewriteRule ^([a-zA-Z0-9_]*)_downloads_gfx_([0-9]*).html modules.php?name=Downloads&op=gfx&random_num=$2
RewriteRule ^([a-zA-Z0-9_]*)_downloads_newdownloadsdate_([0-9]*).html modules.php?name=Downloads&op=NewDownloadsDate&selectdate=$2
RewriteRule ^([a-zA-Z0-9_]*)_downloads_newdownloadshowday_([0-9]*).html modules.php?name=Downloads&op=NewDownloads&newdownloadshowdays=$2
RewriteRule ^([a-zA-Z0-9_]*)_downloads_newdownloads.html modules.php?name=Downloads&op=NewDownloads
RewriteRule ^([a-zA-Z0-9_]*)_downloads_file_([0-9]*).html modules.php?name=Downloads&op=getit&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_downloads_([0-9]*).html modules.php?name=Downloads&cid=$2
RewriteRule ^([a-zA-Z0-9_]*)_downloads.html modules.php?name=Downloads
RewriteRule ^([a-zA-Z0-9_]*)_downloads_pages_([0-9]*)_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Downloads&min=$2&op=search&query=$3
RewriteRule ^([a-zA-Z0-9_]*)_downloads_orderby_([0-9]*)_(titleA|titleD|dateA|dateD|hitsA|hitsD).html modules.php?name=Downloads&cid=$2&orderby=$3
RewriteRule ^([a-zA-Z0-9_]*)_downloads_modify_([0-9]*).html modules.php?name=Downloads&op=modifydownloadrequest&lid=$2

#Encyclopedia
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_([0-9]*)_page([0-9]*)_([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$2&page=$3&query=$4
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_([0-9]*)_page([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$2&page=$3
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_([0-9]*)_([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$2&query=$3
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$2
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_list_([0-9]*).html modules.php?name=Encyclopedia&op=list_content&eid=$2
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_terms([0-9]*)_([A-Z]*).html modules.php?name=Encyclopedia&op=terms&eid=$2&ltr=$3
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_search_([a-zA-Z0-9]*).html modules.php?name=Encyclopedia&file=search&query=$2
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia_search.html modules.php?name=Encyclopedia&file=search
RewriteRule ^([a-zA-Z0-9_]*)_encyclopedia.html modules.php?name=Encyclopedia

#FAQ
RewriteRule ^([a-zA-Z0-9_]*)_faq_([0-9]*)_([a-zA-Z0-9+]*).html modules.php?name=FAQ&myfaq=yes&id_cat=$2&categories=$3
RewriteRule ^([a-zA-Z0-9_]*)_faq_([0-9]*).html modules.php?name=FAQ&op=detailsfaq&id_cat=$2
RewriteRule ^([a-zA-Z0-9_]*)_faq.html modules.php?name=FAQ

#Flux_RSS
RewriteRule ^([a-zA-Z0-9_]*)_Flux_RSS.html modules.php?name=Flux_RSS

#Guestbook
RewriteRule ^([a-zA-Z0-9_]*)_Guestbook_Sign.html modules.php?name=Guestbook&op=sign
RewriteRule ^([a-zA-Z0-9_]*)_Guestbook.html modules.php?name=Guestbook
RewriteRule ^([a-zA-Z0-9_]*)_Guestbook_Admin_Delete_([0-9]+)_([0-9]+).html admin.php?op=GuestbookDelete&id=$2&rt=$3
RewriteRule ^([a-zA-Z0-9_]*)_Guestbook_Admin_Status_([0-9]+)_([0-9]+)_([0-9]+).html admin.php?op=GuestbookActive&status=$2&id=$3&rt=$4
RewriteRule ^([a-zA-Z0-9_]*)_Guestbook_Admin.html admin.php?op=Guestbook

#Groups
RewriteRule ^([a-zA-Z0-9_]*)_groups_join_([0-9]*).html modules.php?name=Groups&op=join&gid=$2
RewriteRule ^([a-zA-Z0-9_]*)_groups_info_([0-9]*).html modules.php?name=Groups&op=info&gid=$2
RewriteRule ^([a-zA-Z0-9_]*)_groups.html modules.php?name=Groups

#Max_Arcade
RewriteRule ^([a-zA-Z0-9_]*)_arcade_choix_([a-zA-Z0-9]*)_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=Max_Arcade&file=index&game=$2&gwidth=$3&gheight=$4&glid=$5
RewriteRule ^([a-zA-Z0-9_]*)_arcade_tri_(dateA|dateD|hitsA|hitsD|titleA|titleD).html modules.php?name=Max_Arcade&orderby=$2
RewriteRule ^([a-zA-Z0-9_]*)_arcade.html modules.php?name=Max_Arcade

#Max_iFrame
RewriteRule ^([a-zA-Z0-9_]*)_frame_([0-9]*).html modules.php?name=Max_iFrame&op=viewpage&id=$2
RewriteRule ^([a-zA-Z0-9_]*)_frame.html modules.php?name=Max_iFrame

#Members_List
RewriteRule ^([a-zA-Z0-9_]*)_members_list_index_(ACS|DESC)_([0-9]*).html modules.php?name=Members_List&file=index&mode=posts&order=$2&start=$3
RewriteRule ^([a-zA-Z0-9_]*)_members_list_index.html modules.php?name=Members_List&file=index
RewriteRule ^([a-zA-Z0-9_]*)_members_list.html modules.php?name=Members_List

#Private_Messages
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_reply_([0-9]*).html modules.php?name=Private_Messages&file=index&mode=reply&p=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_quote_([0-9]*).html modules.php?name=Private_Messages&file=index&mode=quote&p=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_post_([0-9]*).html modules.php?name=Private_Messages&file=index&mode=post&u=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_posts_([0-9]*).html modules.php?name=Private_Messages&mode=post&u=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_post.html modules.php?name=Private_Messages&file=index&mode=post
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_popup_([0-9]*).html modules.php?name=Private_Messages&file=index&mode=newpm&popup=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_edit_([0-9]*).html modules.php?name=Private_Messages&file=index&mode=edit&p=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_(inbox|outbox|savebox|sentbox)_read_([0-9]*).html modules.php?name=Private_Messages&file=index&folder=$2&mode=read&p=$3
RewriteRule ^([a-zA-Z0-9_]*)_private_messages_(inbox|outbox|savebox|sentbox).html modules.php?name=Private_Messages&file=index&folder=$2
RewriteRule ^([a-zA-Z0-9_]*)_private_messages.html modules.php?name=Private_Messages

#Recommend us
RewriteRule ^([a-zA-Z0-9_]*)_recommend_us.html modules.php?name=Recommend_Us

#Reviews
RewriteRule ^([a-zA-Z0-9_]*)_reviews_new.html modules.php?name=Reviews&rop=write_review
RewriteRule ^([a-zA-Z0-9_]*)_reviews_([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$2
RewriteRule ^([a-zA-Z0-9_]*)_reviews_comment_([0-9]*)_([a-zA-Z0-9]*).html modules.php?name=Reviews&rop=postcomment&id=$2&title=$3
RewriteRule ^([a-zA-Z0-9_]*)_reviews_([0-9]*)_edit.html modules.php?name=Reviews&rop=mod_review&id=$2
RewriteRule ^([a-zA-Z0-9_]*)_reviews_([0-9]*)_delete.html modules.php?name=Reviews&rop=del_review&id_del=$2
RewriteRule ^([a-zA-Z0-9_]*)_reviews_([0-9]*)_([0-9]*)_delete.html modules.php?name=Reviews&rop=del_comment&cid=$2&id=$3
RewriteRule ^([a-zA-Z0-9_]*)_reviews_sortby_([a-zA-Z0-9]*).html modules.php?name=Reviews&rop=$2
RewriteRule ^([a-zA-Z0-9_]*)_reviews.html modules.php?name=Reviews

#Search
RewriteRule ^([a-zA-Z0-9_]*)_search_comments_([0-9]*).html modules.php?name=Search&type=comments&sid=$2
RewriteRule ^([a-zA-Z0-9_]*)_search_users.html modules.php?name=Search&type=users
RewriteRule ^([a-zA-Z0-9_]*)_search_topics_([0-9]*).html modules.php?name=Search&topic=$2
RewriteRule ^([a-zA-Z0-9_]*)_search_author_([a-zA-Z0-9]*).html modules.php?name=Search&author=$2
RewriteRule ^([a-zA-Z0-9_]*)_search.html modules.php?name=Search

#Sections
RewriteRule ^([a-zA-Z0-9_]*)_sections_(printpage|viewarticle)_([0-9]*).html modules.php?name=Sections&op=$2&artid=$3
RewriteRule ^([a-zA-Z0-9_]*)_sections_([0-9]*).html modules.php?name=Sections&op=listarticles&secid=$2
RewriteRule ^([a-zA-Z0-9_]*)_sections_query.html modules.php?name=Sections&op=search&query
RewriteRule ^([a-zA-Z0-9_]*)_sections.html modules.php?name=Sections

#Statistics
RewriteRule ^([a-zA-Z0-9_]*)_advance_statistics.html modules.php?name=Statistics&op=Stats
RewriteRule ^([a-zA-Z0-9_]*)_statistics_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=Statistics&op=DailyStats&year=$2&month=$3&date=$4
RewriteRule ^([a-zA-Z0-9_]*)_statistics_([0-9]*)_([0-9]*).html modules.php?name=Statistics&op=MonthlyStats&year=$2&month=$3
RewriteRule ^([a-zA-Z0-9_]*)_statistics_([0-9]*).html modules.php?name=Statistics&op=YearlyStats&year=$2
RewriteRule ^([a-zA-Z0-9_]*)_statistics.html modules.php?name=Statistics

#Sudoku
RewriteRule ^([a-zA-Z0-9_]*)_sudoku.html modules.php?name=Sudoku2

#Stories Archive
RewriteRule ^([a-zA-Z0-9_]*)_archive_([0-9]*)_([0-9]*)_([a-zA-Z]*).html modules.php?name=Stories_Archive&sa=show_month&year=$2&month=$3&month_l=$4
RewriteRule ^([a-zA-Z0-9_]*)_archive_show_all.html modules.php?name=Stories_Archive&sa=show_all
RewriteRule ^([a-zA-Z0-9_]*)_archive.html modules.php?name=Stories_Archive

#Submit_Downloads
RewriteRule ^([a-zA-Z0-9_]*)_submit_dloads_termsuseup.html modules.php?name=Submit_Downloads&op=TermsUsUp
RewriteRule ^([a-zA-Z0-9_]*)_submit_dloads_termsuse.html modules.php?name=Submit_Downloads&op=TermsUse
RewriteRule ^([a-zA-Z0-9_]*)_submit_dloads.html modules.php?name=Submit_Downloads

#Submit_News
RewriteRule ^([a-zA-Z0-9_]*)_submit_news.html modules.php?name=Submit_News

#Supporters
RewriteRule ^([a-zA-Z0-9_]*)_supporters_([0-9]*).html modules.php?name=Supporters&op=go&site_id=$2
RewriteRule ^([a-zA-Z0-9_]*)_supporters_submit.html modules.php?name=Supporters&file=submit
RewriteRule ^([a-zA-Z0-9_]*)_supporters.html modules.php?name=Supporters

#Surveys
RewriteRule ^([a-zA-Z0-9_]*)_survey_poolID_([0-9]*).html modules.php?name=Surveys&pollID=$2
RewriteRule ^([a-zA-Z0-9_]*)_survey_results_([0-9]*)_([a-z]*)_([0-9]*)_([0-9]*).html modules.php?name=Surveys&op=results&pollID=$2&mode=$3&order=$4&thold=$5
RewriteRule ^([a-zA-Z0-9_]*)_survey_results_([a-zA-Z0-9]*).html modules.php?name=Surveys&op=results&pollID=$2
RewriteRule ^([a-zA-Z0-9_]*)_surveys.html modules.php?name=Surveys

#TopSites
RewriteRule ^([a-zA-Z0-9_]*)_top_sites.html modules.php?name=Top_Sites

#Top10
RewriteRule ^([a-zA-Z0-9_]*)_letop10.html modules.php?name=Top

#Topics
RewriteRule ^([a-zA-Z0-9_]*)_topics.html modules.php?name=Topics

#WebLinks
RewriteRule ^([a-zA-Z0-9_]*)_links_search_([a-zA-Z0-9]*).html modules.php?name=Web_Links&l_op=search&query=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_view_([0-9]*).html modules.php?name=Web_Links&l_op=visit&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_viewlinkeditorial_([0-9]+)_ttitle_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Web_Links&l_op=viewlinkeditorial&lid=$2&ttitle=$3
RewriteRule ^([a-zA-Z0-9_]*)_links_viewlinkeditorial_([0-9]+).html modules.php?name=Web_Links&l_op=viewlinkeditorial&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_viewlinkdetails_([0-9]+)_ttitle_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$2&ttitle=$3
RewriteRule ^([a-zA-Z0-9_]*)_links_viewlinkdetails_([0-9]+).html modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_viewlinkcomments_([0-9]*)_([a-zA-Z0-9]*).html modules.php?name=Web_Links&l_op=viewlinkcomments&lid=$2&ttitle=$3
RewriteRule ^([a-zA-Z0-9_]*)_links_viewlinkcomments_([0-9]*).html modules.php?name=Web_Links&l_op=viewlinkcomments&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=Web_Links&l_op=viewlink&cid=$2&min=$3&orderby=titleA&show=$4
RewriteRule ^([a-zA-Z0-9_]*)_links_([0-9]*).html modules.php?name=Web_Links&l_op=viewlink&cid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_toprated_([0-9]+)_(num|percent).html modules.php?name=Web_Links&l_op=TopRated&ratenum=$2&ratetype=$3
RewriteRule ^([a-zA-Z0-9_]*)_links_toprated.html modules.php?name=Web_Links&l_op=TopRated
RewriteRule ^([a-zA-Z0-9_]*)_links_rate_([0-9]+)_ttitle_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Web_Links&l_op=ratelink&lid=$2&ttitle=$3
RewriteRule ^([a-zA-Z0-9_]*)_links_rate_([0-9]+).html modules.php?name=Web_Links&l_op=ratelink&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_outside_([0-9]*).html modules.php?name=Web_Links&l_op=outsidelinksetup&lid=
RewriteRule ^([a-zA-Z0-9_]*)_links_new_([0-9]+).html modules.php?name=Web_Links&l_op=NewLinksDate&selectdate=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_newdownloadshowday_([0-9]*).html modules.php?name=Web_Links&l_op=NewLinks&newlinkshowdays=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_mostpopular_([0-9]+)_(num|percent).html modules.php?name=Web_Links&l_op=MostPopular&ratenum=$2&ratetype=$3
RewriteRule ^([a-zA-Z0-9_]*)_links_modifylinkrequest_([0-9]+).html modules.php?name=Web_Links&l_op=modifylinkrequest&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_brokenlink_([0-9]+).html modules.php?name=Web_Links&l_op=brokenlink&lid=$2
RewriteRule ^([a-zA-Z0-9_]*)_links_op_(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?name=Web_Links&l_op=$2
RewriteRule ^([a-zA-Z0-9_]*)_links.html modules.php?name=Web_Links

#Your_Account
RewriteRule ^([a-zA-Z0-9_]*)_user_logout_redirect_forums.html modules.php?name=Your_Account&op=logout&redirect=Forums
RewriteRule ^([a-zA-Z0-9_]*)_user_redirect_index.html modules.php?name=Your_Account&redirect=index
RewriteRule ^([a-zA-Z0-9_]*)_banuser_([0-9]*)_([/:\-\'(){}.&=_a-zA-Z0-9]*)_([0-9]*).html modules.php?name=Your_Account&op=ya_banuser&userid=$2&username=$3&ip=$4
RewriteRule ^([a-zA-Z0-9_]*)_userinfo_([/:\-\'(){}.&=_a-zA-Z0-9]*).html modules.php?name=Your_Account&op=userinfo&username=$2
RewriteRule ^([a-zA-Z0-9_]*)_user_(avatarlinksave|avatarlist|chgtheme|editcomm|edithome|edituser|logout|new_user|pass_lost).html modules.php?name=Your_Account&op=$2
RewriteRule ^([a-zA-Z0-9_]*)_userinfo.html modules.php?name=Your_Account