# Rewrite rules # RewriteEngine on RewriteBase / # Core # RewriteRule ^admin/cache/([\w/_-]*)$ /admin/cache/index.php?url=/$1 [L,QSA] RewriteRule ^admin/config/([\w/_-]*)$ /admin/config/index.php?url=/$1 [L,QSA] RewriteRule ^admin/content/([\w/_-]*)$ /admin/content/index.php?url=/$1 [L,QSA] RewriteRule ^admin/errors/([\w/_-]*)$ /admin/errors/index.php?url=/$1 [L,QSA] RewriteRule ^admin/files/([\w/_-]*)$ /admin/files/index.php?url=/$1 [L,QSA] RewriteRule ^admin/langs/([\w/_-]*)$ /admin/langs/index.php?url=/$1 [L,QSA] RewriteRule ^admin/maintain/([\w/_-]*)$ /admin/maintain/index.php?url=/$1 [L,QSA] RewriteRule ^admin/member/([\w/_-]*)$ /admin/member/index.php?url=/$1 [L,QSA] RewriteRule ^admin/modules/([\w/_-]*)$ /admin/modules/index.php?url=/$1 [L,QSA] RewriteRule ^admin/server/([\w/_-]*)$ /admin/server/index.php?url=/$1 [L,QSA] RewriteRule ^admin/smileys/([\w/_-]*)$ /admin/smileys/index.php?url=/$1 [L,QSA] RewriteRule ^admin/themes/([\w/_-]*)$ /admin/themes/index.php?url=/$1 [L,QSA] RewriteRule ^syndication/([\w/_-]*)$ /syndication/index.php?url=/$1 [L,QSA] # High Priority Modules rules # # calendar # RewriteRule ^calendar/events_list/today/?$ /calendar/index.php?url=/events_list/&display_current_day_events=1 [L,QSA] # Modules rules # # articles # RewriteRule ^articles/([\w/_-]*)$ /articles/index.php?url=/$1 [L,QSA] # database # RewriteRule ^database/([\w/_-]*)$ /database/index.php?url=/$1 [L,QSA] # calendar # RewriteRule ^calendar/([\w/_-]*)$ /calendar/index.php?url=/$1 [L,QSA] # contact # RewriteRule ^contact/([\w/_-]*)$ /contact/index.php?url=/$1 [L,QSA] # online # RewriteRule ^online/([\w/_-]*)$ /online/index.php?url=/$1 [L,QSA] # faq # RewriteRule ^faq/([\w/_-]*)$ /faq/index.php?url=/$1 [L,QSA] # forum # RewriteRule ^forum/forum-([0-9]+)-?([0-9]*)(\+?[^.]*)\.php$ /forum/forum.php?id=$1&p=$2 [L,QSA] RewriteRule ^forum/topic-([0-9]+)-?([0-9]*)-?([0-9]*)-?([0-9]*)(\+?[^.]*)\.php$ /forum/topic.php?id=$1&pt=$2&idm=$3"e=$4 [L] RewriteRule ^forum/cat-([0-9]+)(\+?[^.]*)\.php$ /forum/index.php?id=$1 [L,QSA] # forum # RewriteRule ^forum/([\w/_-]*)$ /forum/index.php?url=/$1 [L,QSA] # gallery # RewriteRule ^gallery/gallery-([0-9]+)-?([0-9]*)-?([0-9]*)(\+?[^.]*)\.php$ /gallery/gallery.php?cat=$1&id=$2&p=$3 [L,QSA] # gallery # RewriteRule ^gallery/([\w/_-]*)$ /gallery/index.php?url=/$1 [L,QSA] # GoogleMaps # RewriteRule ^GoogleMaps/([\w/_-]*)$ /GoogleMaps/index.php?url=/$1 [L,QSA] # web # RewriteRule ^web/([\w/_-]*)$ /web/index.php?url=/$1 [L,QSA] # guestbook # RewriteRule ^guestbook/([\w/_-]*)$ /guestbook/index.php?url=/$1 [L,QSA] # media # RewriteRule ^media/media-([0-9]+)-?([0-9]*)-?([0-9]*)(\+?[^.]*)\.php$ /media/media.php?id=$1&cat=$2&p=$3 [L,QSA] # media # RewriteRule ^media/([\w/_-]*)$ /media/index.php?url=/$1 [L,QSA] # news # RewriteRule ^news/([\w/_-]*)$ /news/index.php?url=/$1 [L,QSA] # newsletter # RewriteRule ^newsletter/([\w/_-]*)$ /newsletter/index.php?url=/$1 [L,QSA] # pages # RewriteRule ^pages/([a-z0-9-]+)$ /pages/pages.php?title=$1 [L,QSA] # customization # RewriteRule ^customization/([\w/_-]*(?:\.css)?)$ /customization/index.php?url=/$1 [L,QSA] # sitemap # RewriteRule ^sitemap/([\w/_-]*)$ /sitemap/index.php?url=/$1 [L,QSA] # QuestionCaptcha # RewriteRule ^QuestionCaptcha/([\w/_-]*)$ /QuestionCaptcha/index.php?url=/$1 [L,QSA] # ReCaptcha # RewriteRule ^ReCaptcha/([\w/_-]*)$ /ReCaptcha/index.php?url=/$1 [L,QSA] # SocialNetworks # RewriteRule ^SocialNetworks/([\w/_-]*)$ /SocialNetworks/index.php?url=/$1 [L,QSA] # poll # RewriteRule ^poll/poll-([0-9]+)-?([0-9]*)-?([0-9]*)\.php$ /poll/poll.php?id=$1&r=$2&p=$3 [L,QSA] # stats # RewriteRule ^stats/stats-([a-z]+)\.php$ /stats/stats.php?$1=1 [L,QSA] # download # RewriteRule ^download/([\w/_-]*)$ /download/index.php?url=/$1 [L,QSA] # wiki # RewriteRule ^wiki/([a-z0-9-_]+)/?$ /wiki/wiki.php?title=$1 [L,QSA] # User # RewriteRule ^user/pm-?([0-9]+)-?([0-9]{0,})-?([0-9]{0,})-?([0-9]{0,})-?([a-z_]{0,})$ /user/pm.php?pm=$1&id=$2&p=$3"e=$4 [L,QSA] RewriteRule ^user/([\w/-_]*)$ /user/index.php?url=/$1 [L,QSA] RewriteRule ^login/?$ /user/index.php?url=/login/ [L,QSA] RewriteRule ^aboutcookie/?$ /user/index.php?url=/aboutcookie/ [L,QSA] RewriteRule ^registration/?$ /user/index.php?url=/registration/ [L,QSA] RewriteRule ^registration/confirm/?([a-z0-9]+)?/?$ /user/index.php?url=/registration/confirm/$1 [L,QSA] RewriteRule ^password/lost/?$ /user/index.php?url=/password/lost/ [L,QSA] RewriteRule ^password/change/?([a-z0-9]+)?/?$ /user/index.php?url=/password/change/$1 [L,QSA] RewriteRule ^error/403/?$ /user/index.php?url=/error/403/ [L,QSA] RewriteRule ^error/404/?$ /user/index.php?url=/error/404/ [L,QSA] # PHP and HTTP protections # # Block out use of illegal or unsafe characters in the HTTP Request RewriteCond %{THE_REQUEST} ^.*(\r|\n|%0A|%0D).* [NC,OR] # Block out any script that includes a