- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
Options -Indexes
ErrorDocument 404 /404.php
<IfModule mod_php5.c>
php_flag allow_call_time_pass_reference 1
php_flag session.use_trans_sid off
php_value display_errors 1
php_value display_startup_errors 1
php_value error_reporting E_ALL
php_value auto_prepend_file "/home/bitrix/www/bitrix/pagen.php"
#php_value mbstring.internal_encoding UTF-8
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)/page([\d]+)/ /$1/?PAGEN_2=$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 3 day"
ExpiresByType image/gif "access plus 3 day"
</IfModule>
RewriteCond %{HTTP_HOST} ^www\.sitename\.ru [NC]
RewriteRule ^(.*)$ http://sitename.ru/$1 [L,R=301]
# Чиним изменения в названии корневых разделов
RedirectMatch 301 /catalog/oborudovanie-dlya-katerov-i-lodok/(.*) /catalog/oborud/$1
RedirectMatch 301 /catalog/vse-dlya-orujiya/(.*) /catalog/guns/$1
RedirectMatch 301 /catalog/ohota/(.*) /catalog/hunt/$1
RedirectMatch 301 /catalog/ribalka/(.*) /catalog/fish/$1
RedirectMatch 301 /catalog/noji/(.*) /catalog/knifes/$1
RedirectMatch 301 /catalog/lodochnie-motory/(.*) /catalog/motors/$1
RedirectMatch 301 /catalog/zapchasti/(.*) /catalog/spares/$1
RedirectMatch 301 /catalog/navigatsiya/(.*) /catalog/navi/$1
RedirectMatch 301 /catalog/masla-i-gsm/(.*) /catalog/oil/$1
RedirectMatch 301 /catalog/accumulyatori/(.*) /catalog/accum/$1
RedirectMatch 301 /catalog/turizm-i-kemping/(.*) /catalog/camp/$1
RedirectMatch 301 /catalog/pnevmaticheskoe-orujie/(.*) /catalog/pneumo/$1
RedirectMatch 301 /catalog/suveniri-i-podarki/(.*) /catalog/gifts/$1
Помогите пожалуйста сделать так, чтобы все ссылки вида /catalog/oborud редиректили 301 на / catalog/oborud/