<ifModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

ErrorDocument 404 /error.php
ErrorDocument 500 /error.php
</ifModule>

RewriteEngine on 
RewriteRule ^(.*)\.html $1\.php 
RewriteRule ^account/logout(.*)$ logout.php
RewriteRule ^articles(|/)$ articles.php
RewriteRule ^articles/(.*)$ ./articles.php?id_news_retro=$1
RewriteRule ^me(|/)$ me.php
RewriteRule ^safety/safety_tips(|/)$ safety_tips.php
RewriteRule ^captcha(|/)$ error.php
RewriteRule ^captcha/monofont.ttf(|/)$ error.php
RewriteRule ^captcha/php-captcha.inc.php(|/)$ error.php
RewriteRule ^client(|/)$ client.php
RewriteRule ^clientutils(|/)$ clientutils.php
RewriteRule ^account/(.*)(|/)$ account.php?GET=$1
RewriteRule ^community(|/)$ community.php
RewriteRule ^community/staff(|/)$ staff.php
RewriteRule ^community/vip(|/)$ vip.php
RewriteRule ^community/experts(|/)$ xler.php
RewriteRule ^community/topstats(|/)$ topstats.php
RewriteRule ^community/tag(|/)$ tag.php
RewriteRule ^community/bewerben(|/)$ bwr.php
RewriteRule ^credits(|/)$ credits.php
RewriteRule ^credits/ch(|/)$ credits.php?ch
RewriteRule ^credits/vip(|/)$ credits.php?vip
RewriteRule ^credits/ch/vip(|/)$ credits.php?ch&amp;vip
RewriteRule ^credits/shop/online/(..*)/(..*)/(..*)/(..*)$ shop.php?land=$1&shop=$2&amount=$3&step=$4
RewriteRule ^credits/pixels(|/)$ pixels.php
RewriteRule ^credits/badgeshop(|/)$ credits_badgeshop.php
RewriteRule ^credits/history(|/)$ history.php
RewriteRule ^credits/changer(|/)$ changer.php
RewriteRule ^credits/bigdeal(|/)$ bigdeal.php
RewriteRule ^vipshop(|/)$ vipshop.php
RewriteRule ^vipshop/(..*)$ vipshop.php?page_cms=$1
RewriteRule ^shop/pferde(.*)$ pferde.php
RewriteRule ^shop/limited(.*)$ rareshop.php
RewriteRule ^myhabbo/badges/(.*)$ ./habblet/widgets/badges_$1.php
RewriteRule ^myhabbo/guestbook/(.*)$ ./habblet/widgets/guestbook_$1.php
RewriteRule ^myhabbo/widget/(.*)$ ./habblet/widgets/myhabbo_widget_$1.php
RewriteRule ^myhabbo/(.*)/(.*)/(.*)$ ./habblet/groups/myhabbo_$1_$2_$3.php
RewriteRule ^myhabbo/(.*)/(.*)$ ./habblet/groups/myhabbo_$1_$2.php
RewriteRule ^myhabbo/rating/rate(|/)$ ./myhabbo/rating_rate.php
RewriteRule ^myhabbo/rating/reset_ratings(|/)$ ./myhabbo/rating_reset_ratings.php
RewriteRule ^groups/actions/(.*)/(.*)$ ./habblet/groups/groups_actions_$1.php?id=$2
RewriteRule ^groups/actions/(.*)$ ./habblet/groups/groups_actions_$1.php
RewriteRule ^groups/(.*)/id/discussions/page/(.*)$ ./habblet/discussions/discussions.php?id=$1&page=$2
RewriteRule ^groups/(.*)/discussions/page/(.*)$ ./habblet/discussions/discussions.php?alias=$1&page=$2
RewriteRule ^groups/(.*)/id/discussions/(.*)/id/page/(.*)$ ./habblet/discussions/discussions.php?id=$1&thread=$2&page=$3
RewriteRule ^groups/(.*)/id/discussions/(.*)/id/page/(.*)$ ./habblet/discussions/discussions.php?alias=$1&thread=$2&page=$3
RewriteRule ^groups/(.*)/id/discussions/(.*)/id$ ./habblet/discussions/discussions.php?id=$1&thread=$2
RewriteRule ^groups/(.*)/id/discussions/(.*)/id$ ./habblet/discussions/discussions.php?alias=$1&thread=$2
RewriteRule ^groups/(.*)/id/discussions$ ./habblet/discussions/discussions.php?id=$1
RewriteRule ^groups/(.*)/id$ ./groups.php?web-group-id=$1
RewriteRule ^habblet/cproxy?k=([^/]+)(|/)$ ./habblet/cproxy?habbletKey=$1
RewriteRule ^habblet/cproxy(|/)$ ./habblet/cproxy.php
RewriteRule ^rd/([^/]+)(|/)$ rd.php?id=$1
RewriteRule ^discussions/actions/(.*)$ ./habblet/discussions/discussions_actions_$1.php
RewriteRule ^forum(.*)$ ./habblet/discussions/forum.php
RewriteRule ^forum/page/(.*)$ ./habblet/discussions/forum.php?page=$1
RewriteRule ^forum/(.*)/id/page/(.*)$ ./habblet/discussions/forum.php?thread=$1&page=$2
RewriteRule ^forum/(.*)/id/page/(.*)$ ./habblet/discussions/forum.php?thread=$1&page=$2
RewriteRule ^forum/(.*)/id$ ./habblet/discussions/forum.php?thread=$1
RewriteRule ^forum/(.*)/id$ ./habblet/discussions/forum.php?thread=$1
RewriteRule ^mod/localizations(.*)$ ./habblet/discussions/mod_localizations.php
RewriteRule ^mod/add_(.*)_report$ ./habblet/discussions/mod_add_report.php?type=$1
RewriteRule ^error(.*)$ 404.php
RewriteRule ^working(.*)$ 403.php
RewriteRule ^papers/disclaimer(|/)$ disclaimer.php
RewriteRule ^papers/privacy(|/)$ privacy.php
RewriteRule ^quickregister/back(|/)$ quickregister.php?cancal
RewriteRule ^quickregister/cancel(|/)$ quickregister.php?cancel
RewriteRule ^quickregister/start(|/)$ quickregister.php?step=1
RewriteRule ^quickregister/age_gate_submit(|/)$ quickregister.php?step=2
RewriteRule ^quickregister/email_password(|/)$ quickregister.php?step=3
RewriteRule ^quickregister/start/([^/]+)(|/)$ quickregister.php?referer_ID=$1
RewriteRule ^quickregister/email_password_submit(|/)$ quickregister.php?step=4
RewriteRule ^quickregister/captcha(|/)$ quickregister.php?step=5
RewriteRule ^quickregister/refresh_avatars(|/)$ habblet/quickregister/refresh_avatars.php
RewriteRule ^quickregister/captcha_submit(|/)$ quickregister.php?step=6
RewriteRule ^manage/cms/DE-de/hk_re(|/)$ ./manage/cms/DE-de/hk_re/index.php
RewriteRule ^manage/cms/DE-de/hk_re/index/p/(.*)$ ./manage/cms/DE-de/hk_re/index.php?p=$1
RewriteRule ^myhabbo/tag/(..*)$ ./habblet/tags/$1.php
RewriteRule ^habblet/(|/)$ error.php 
RewriteRule ^habblet/cproxy?habbletKey=news$ client_news.php 
RewriteRule ^phpmyadmin(|/)$ error.php
RewriteRule ^home/(..*)$ ./user_profile.php?username_hotel=$1
RewriteRule ^maintenance(|/)$ maintenance.php
RewriteRule ^xml(|/)$ ./error.php
RewriteRule ^xml/badge_data.xml(|/)$ error.php
RewriteRule ^xml/badge_data_xml.xml(|/)$ error.php
RewriteRule ^xml/badge_editor.xml(|/)$ error.php
RewriteRule ^profile(|/)$ profile.php
RewriteRule ^profile/([^/]+)(|/)$ ./profile.php?HOBBA_NUM_TAB=$1
RewriteRule ^forgot(|/)$ forgot.php
RewriteRule ^help(|/)$ help.php
RewriteRule ^help/(..*)$ ./help.php?web-faq-id=$1
RewriteRule ^index(|/)$ index.php
RewriteRule ^tag(|/)$ ./tag.php
RewriteRule ^tag/([^/]+)(|/)$ ./tag.php?tag=$1


## USER IP BANNING
<Limit GET POST>
 order allow,deny
 deny from 85.179.198.213
 deny from 109.230.238.221
 deny from 212.23.103.37
 deny from 109.90.16.216
 allow from all
</Limit>
