AddDefaultCharset utf8
ErrorDocument 404 /404.php
Order allow,deny
allow from all
# Deny from 95.108.158.227 yandex
Deny from 5.255.
Deny from 62.210.203.
Deny from 123.125.
Deny from 95.34.26.
Deny from 220.181.
<FilesMatch "(.*)alihack(.*)">
Order Allow,Deny
Deny from all
</FilesMatch>
DirectoryIndex index.php index.html index.html
# BEGIN WordPress
Redirect permanent /news/text_news.php /news
Redirect permanent /news/text_news /news
<IfModule mod_rewrite.c>
RewriteEngine On
#Редирект на домен без www
RewriteCond %{HTTP_HOST} ^www.site.com$ [NC]
RewriteRule ^(.*)$ http://site.com/$1 [R=301,L]
RewriteRule ^biographiya.php/([^/\.]+)/?$ biographiya.php/?id=$1 [L]
RewriteRule ^biography.php/([^/\.]+)/?$ biographiya.php/?id=$1 [L]
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} bingbot [OR]
RewriteCond %{HTTP_USER_AGENT} AhrefsBot
RewriteRule ^.* - [F,L]
# uploaded files
##RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteRule ^(foto|net/uploads|forum/images|net/y/images)/(.*).php$ index.php?redirect=404
RewriteRule ^index\.php$ - [L]
RewriteCond %{HTTP_HOST} !^www.[NC]
RewriteCond %{HTTP_HOST} ^(.+?)\.site.com$ [NC]
#RewriteRule ^(.*)$ retailer.php?linklabel=%1 [L,QSA]
RewriteRule ^(.*)$ region.php?region=/region/%1/ [QSA,L]
#RewriteRule ^$ /region/%1/ [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress