._htaccess 11.9 KB
#AuthName "extremstyle.ua"
#AuthType Basic
#Require valid-user
#AuthUserFile "/home/.htpasswd"

ErrorDocument 404 http://extremstyle.ua
ErrorDocument 403 http://extremstyle.ua
ErrorDocument 500 http://extremstyle.ua
ErrorDocument 502 http://extremstyle.ua

php_value max_execution_time 160
php_value set_time_limit 160
php_value memory_limit "264M"
php_value "upload_max_filesize" "100M"
php_value "post_max_size" "101M"
#php_value display_errors 1
#php_value error_reporting 2047

AddDefaultCharset windows-1251

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.extremstyle\.ua$ [NC]
RewriteRule ^(.*)$ http://extremstyle.ua/$1 [R=301,L]

#RewriteRule ^catalogs\/?$ http://extremstyle.ua/ [R=301,L]


RewriteRule  ^(.*)-catalogs\/filter;(.*)\/page_([0-9]+).html\/?$  index.php?action=catalogs&rubID=$1&dataFilter=$2&page=$3&%{QUERY_STRING}

RewriteRule  ^(.*)-catalogs\/?$  index.php?action=catalogs&rubID=$1&%{QUERY_STRING} [NC,L]
RewriteRule  ^(.*)-catalogs\/filter;(.*)\/?$  index.php?action=catalogs&rubID=$1&dataFilter=$2&%{QUERY_STRING}
RewriteRule  ^akcii\/filter;(.*)\/?$  index.php?action=catalogs&rubID=$1&dataFilter=$2&%{QUERY_STRING}

RewriteRule  ^catalogs\/filter;(.*)\/?$  index.php?action=catalogs&dataFilter=$1&%{QUERY_STRING}

RewriteRule  ^catalogs\/page_([0-9]+).html\/?$  index.php?action=catalogs&page=$1&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/page_([0-9]+).html\/?$  index.php?action=catalogs&rubID=$1&page=$2&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/f([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&filterID=$2&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/y([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&yearID=$2&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/sex([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&sex=$2&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/([0-9]+)\/?$  index.php?action=catalogs&parent_rubID=$2&rubID=$1&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/collections\/([0-9]+)\/?$  index.php?action=catalogs&modAction=collections&parent_rubID=$2&rubID=$1&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/([0-9]+)\/product_([0-9]+)\/?$  index.php?action=catalogs&parent_rubID=$2&rubID=$1&productID=$3&%{QUERY_STRING}
RewriteRule  ^(.*)-catalogs\/([0-9]+)\/collection_([0-9]+)\/?$  index.php?action=catalogs&parent_rubID=$2&rubID=$1&collectionID=$3&%{QUERY_STRING}

RewriteRule  ^(.*)-catalogs\/(.*)-([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&productID2=$3&productID=$2&%{QUERY_STRING}


RewriteRule  ^(.*)-catalogs\/(.*)\/?$  index.php?action=catalogs&rubID=$1&productID=$2&%{QUERY_STRING}


RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=30&SECTION_ID=158\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13598/? [R=301,L]


RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=31&SECTION_ID=149\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13601/? [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?PAGEN_1=1&SID=1&IBLOCK_ID=31&SECTION_ID=148\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13601/? [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?PAGEN_1=1&SID=1&IBLOCK_ID=31&SECTION_ID=150\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13602/? [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?PAGEN_1=1&SID=1&IBLOCK_ID=31&SECTION_ID=149\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13603/? [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?PAGEN_1=1&SID=1&IBLOCK_ID=31&SECTION_ID=151\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13604/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=33&SECTION_ID=269\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13588/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=26&SECTION_ID=199\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13540/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=24&SECTION_ID=185\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13557/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=32&SECTION_ID=472\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13546/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=25&SECTION_ID=162\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13551/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=22&SECTION_ID=366\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13538/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=21&SECTION_ID=437\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13566/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=20&SECTION_ID=607\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13508/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=34&SECTION_ID=388\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13547/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=23&SECTION_ID=205\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13553/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=29&SECTION_ID=164\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13507/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=28&SECTION_ID=490\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13517/? [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /catalog\/index\.php\?SID=1&IBLOCK_ID=27&SECTION_ID=493\ HTTP/
RewriteRule ^catalog\/index\.php$ http://%{HTTP_HOST}/catalogs/13542/? [R=301,L]


#RewriteRule  ^akcii\/?$  index.php?action=catalogs&akcii=1&sort=cine&%{QUERY_STRING}
RewriteRule  ^payment\/?$  index.php?action=payment&tpl=2&%{QUERY_STRING}
RewriteRule  ^payment\/([0-9]+)\/?$  index.php?action=payment&id=$1&tpl=2&navig=1&%{QUERY_STRING}

RewriteRule  ^sitemap-catalog-([0-9]+)\/?$  index.php?action=sitemap&modAction=catalog&catID=$1&%{QUERY_STRING}
RewriteRule  ^sitemap-news\/?$  index.php?action=sitemap&modAction=news&%{QUERY_STRING}
RewriteRule  ^sitemap-articles\/?$  index.php?action=sitemap&modAction=articles&%{QUERY_STRING}

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule  ^([^\/\.]+)\/?$  index.php?action=$1&navig=1&%{QUERY_STRING}

RewriteRule  ^question\/add\/?$  index.php?action=question&add&%{QUERY_STRING}
RewriteRule  ^question\/([0-9]+)\/?$  index.php?action=question&id=$1&%{QUERY_STRING}

RewriteRule  ^catalogs\/([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&%{QUERY_STRING} [NC,L]

RewriteRule  ^catalogs\/page_([0-9]+).html\/?$  index.php?action=catalogs&page=$1&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/page_([0-9]+).html\/?$  index.php?action=catalogs&rubID=$1&page=$2&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/f([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&filterID=$2&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/y([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&yearID=$2&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/sex([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&sex=$2&%{QUERY_STRING}
RewriteRule  ^catalogs\/basket\/?$  index.php?action=catalogs&modAction=basket&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/([0-9]+)\/?$  index.php?action=catalogs&parent_rubID=$2&rubID=$1&%{QUERY_STRING}
RewriteRule  ^catalogs\/collections\/([0-9]+)\/([0-9]+)\/?$  index.php?action=catalogs&modAction=collections&parent_rubID=$2&rubID=$1&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/([0-9]+)\/product_([0-9]+)\/?$  index.php?action=catalogs&parent_rubID=$2&rubID=$1&productID=$3&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/([0-9]+)\/collection_([0-9]+)\/?$  index.php?action=catalogs&parent_rubID=$2&rubID=$1&collectionID=$3&%{QUERY_STRING}
RewriteRule  ^catalogs\/([0-9]+)\/t([0-9]+)\/?$  index.php?action=catalogs&rubID=$1&productID=$2&%{QUERY_STRING}
RewriteRule  ^catalogs\/reg\/?$  index.php?action=catalogs&modAction=reg&%{QUERY_STRING}
RewriteRule  ^catalogs\/user_edit\/?$  index.php?action=catalogs&modAction=user_edit&%{QUERY_STRING}
RewriteRule  ^catalogs\/nopsw\/?$  index.php?action=catalogs&modAction=nopsw&%{QUERY_STRING}
RewriteRule  ^catalogs\/producers\/?$  index.php?action=catalogs&modAction=producers&%{QUERY_STRING}
RewriteRule  ^catalogs\/brends\/?$  index.php?action=catalogs&modAction=brends&%{QUERY_STRING}
RewriteRule  ^catalogs\/brend([0-9]+)\/?$  index.php?action=catalogs&brendID=$1%{QUERY_STRING}
RewriteRule  ^catalogs\/brends\/([^\/\.]+)\/?$  index.php?action=catalogs&modAction=brends&brend=$1&b=1&%{QUERY_STRING}
RewriteRule  ^catalogs\/brends\/([^\/\.]+)\/history\/?$  index.php?action=catalogs&modAction=brends&brend=$1&b=1&history=1&%{QUERY_STRING}
RewriteRule  ^catalogs\/brends\/([^\/\.]+)\/teh\/?$  index.php?action=catalogs&modAction=brends&brend=$1&b=1&teh=1&%{QUERY_STRING}

RewriteRule  ^catalogs\/brends\/([^\/\.]+)\/products\/?$  index.php?action=catalogs&brend=$1&b=1&%{QUERY_STRING}
RewriteRule  ^catalogs\/brends\/([^\/\.]+)\/products\/page_([0-9]+).html\/?$  index.php?action=catalogs&brend=$1&b=1&page=$2&%{QUERY_STRING}

RewriteRule  ^catalogs\/compare\/?$  index.php?action=catalogs&modAction=compare&%{QUERY_STRING}


RewriteRule  ^articles\/page_([0-9]+).html\/?$  index.php?action=articles&page=$1&%{QUERY_STRING}
RewriteRule  ^articles\/([0-9]+)\/?$  index.php?action=articles&id=$1&navig=1&%{QUERY_STRING}
RewriteRule  ^articles\/([^\/\.]+)-([0-9]+)\/?$  index.php?action=articles&translit=$1&id=$2&navig=1&%{QUERY_STRING}
RewriteRule  ^services\/page_([0-9]+).html\/?$  index.php?action=services&page=$1&%{QUERY_STRING}
RewriteRule  ^services\/([0-9]+)\/?$  index.php?action=services&id=$1&navig=1&%{QUERY_STRING}
RewriteRule  ^news\/page_([0-9]+).html\/?$  index.php?action=news&page=$1&%{QUERY_STRING}
RewriteRule  ^news\/([0-9]+)\/?$  index.php?action=news&id=$1&navig=1&%{QUERY_STRING}
RewriteRule  ^news\/([^\/\.]+)-([0-9]+)\/?$  index.php?action=news&translit=$1&id=$2&navig=1&%{QUERY_STRING}
RewriteRule  ^training\/([0-9]+)\/?$  index.php?action=training&id=$1&navig=1&%{QUERY_STRING}
RewriteRule  ^training\/page_([0-9]+).html\/?$  index.php?action=training&page=$1&%{QUERY_STRING}
#RewriteRule  ^akcii\/page_([0-9]+).html\/?$  index.php?action=catalogs&akcii=1&page=$1&%{QUERY_STRING}
RewriteRule  ^akcii\/([0-9]+)\/?$  index.php?action=akcii&id=$1&navig=1&%{QUERY_STRING}
RewriteRule  ^reviews\/([0-9]+)\/?$  index.php?action=reviews&id=$1&navig=1&%{QUERY_STRING}

RewriteRule  ^video\/page_([0-9]+).html\/?$  index.php?action=video&page=$1&%{QUERY_STRING}
RewriteRule  ^video\/([0-9]+)\/?$  index.php?action=video&id=$1&navig=1&%{QUERY_STRING}
RewriteRule  ^video\/([^\/\.]+)-([0-9]+)\/?$  index.php?action=video&translit=$1&id=$2&navig=1&%{QUERY_STRING}

RewriteRule  ^forum\/page_([0-9]+).html\/?$  index.php?action=forum&page=$1&%{QUERY_STRING}

RewriteRule  ^(uploaded\/pic\/catalogs\/products\/)a_(.+)$ img.php?prefix=a&src=$1$2
RewriteRule  ^(uploaded\/pic\/catalogs\/products\/)w_(.+)$ img.php?prefix=w&src=$1$2

RewriteRule ^account/active(.*)$ /index.php [L,QSA]
RewriteRule ^account/panel(.*)$ /index.php [L,QSA]
RewriteRule ^account/info(.*)$ /index.php [L,QSA]
RewriteRule ^account/orders(.*)$ /index.php [L,QSA]
RewriteRule ^account/messages(.*)$ /index.php [L,QSA]
RewriteRule ^account/audience(.*)$ /index.php [L,QSA]
RewriteRule ^account/signup(.*)$ /index.php [L,QSA]
RewriteRule ^account/signout(.*)$ /index.php [L,QSA]
RewriteRule ^account/registration(.*)$ /index.php [L,QSA]
RewriteRule ^account/remind(.*)$ /index.php [L,QSA]
RewriteRule ^account/status(.*)$ /index.php [L,QSA]
RewriteRule ^account/opros(.*)$ /index.php [L,QSA]

ErrorDocument 404 /