<IfModule mod_fcgid.c>
	<FilesMatch "\.php$">
		SetHandler fcgid-script
		FCGIWrapper '/usr/local/safe-bin/fcgid55.sh /usr/local/directadmin/data/users/loniu2/php/paintballmod.com.ini -d mail.log="/home/loniu2/.php/php-mail.log"' .php
		Options +ExecCGI
	</FilesMatch>
</IfModule>

#RewriteBase /
RewriteEngine on


RewriteRule ^tag-(.*?)\.html$ tag.php?name=$1 [L,QSA]
RewriteRule ^tag\.html$ tag.php [L,QSA]

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

RewriteCond %{HTTPS} off
RewriteRule ^([^&]*)&(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Watek\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Ogloszenie\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^Uzytkownik\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Kalendarz\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Wydarzenie\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

SetEnvIfNoCase User-Agent "AhrefsBot" bad_bots
SetEnvIfNoCase User-Agent "Yandex" bad_bots
SetEnvIfNoCase User-Agent "YandexBot" bad_bots
SetEnvIfNoCase User-Agent "Ninja" bad_bots
SetEnvIfNoCase User-Agent "NinjaBot" bad_bots
SetEnvIfNoCase User-Agent "ColoCrossing" bad_bots
SetEnvIfNoCase User-Agent "Majestic" bad_bots
SetEnvIfNoCase User-Agent "SemrushBot" bad_bots
SetEnvIfNoCase User-Agent "YandexImages" bad_bots
SetEnvIfNoCase User-Agent "Exabot" bad_bots
SetEnvIfNoCase User-Agent "MJ12bot" bad_bots
SetEnvIfNoCase User-Agent "Sogou" bad_bots
SetEnvIfNoCase User-Agent "Baiduspider" bad_bots
SetEnvIfNoCase User-Agent "Baidu" bad_bots
SetEnvIfNoCase User-Agent "GetIntent" bad_bots
SetEnvIfNoCase User-Agent "Gigabot" bad_bots
SetEnvIfNoCase User-Agent "ltx71" bad_bots
SetEnvIfNoCase User-Agent "SeznamBot" bad_bots
SetEnvIfNoCase User-Agent "HybridBot" bad_bots
SetEnvIfNoCase User-Agent "proximic" bad_bots
SetEnvIfNoCase User-Agent "GrapeshotCrawler" bad_bots
SetEnvIfNoCase User-Agent "Mail.RU_Bot/2.0" bad_bots
SetEnvIfNoCase User-Agent "Plukkie" bad_bots
SetEnvIfNoCase User-Agent "DeuSu" bad_bots
SetEnvIfNoCase User-Agent "XoviBot" bad_bots
SetEnvIfNoCase User-Agent "archive.org_bot" bad_bots
SetEnvIfNoCase User-Agent "bhcBot" bad_bots
SetEnvIfNoCase User-Agent "BLEXBot" bad_bots
SetEnvIfNoCase User-Agent "SentiBot" bad_bots
SetEnvIfNoCase User-Agent "DotBot" bad_bots
SetEnvIfNoCase User-Agent "FemtosearchBot" bad_bots
SetEnvIfNoCase User-Agent "yoozBot" bad_bots
SetEnvIfNoCase User-Agent "AwarioRssBot" bad_bots
SetEnvIfNoCase User-Agent "linkdexbot" bad_bots
SetEnvIfNoCase User-Agent "demandbase" bad_bots
SetEnvIfNoCase User-Agent "Cliqzbot" bad_bots
SetEnvIfNoCase User-Agent "BotScout" bad_bots

Order Allow,Deny
Deny from env=bad_bot
Allow from all
