редирект .htaccess (bitrix)

ИЭ
На сайте с 15.06.2013
Offline
0
1978

Подскажите, как настроить редирект всех страниц index.php с помощью htaccess, т.е., к примеру:

http://www.site.ru/about/index.php на http://www.site.ru/about/

Или другие варианты, сайт на Битриксе

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 mbstring.func_overload 2
#php_value mbstring.internal_encoding UTF-8
</IfModule>

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

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

#RewriteRule ^/about/news2/$ http://www.site.ru/about/ [R=301,L]

RewriteCond %{REQUEST_URI} ^(.*)/$
RewriteRule .* - [L]

RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]

RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_URI} ^(.*)/index.php$
RewriteRule ^(.*)$ %1/ [R=301,L]

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/jpg "access 3 day"
ExpiresByType image/jpeg "access 3 day"
ExpiresByType image/gif "access 3 day"
ExpiresByType image/png "access 3 day"
ExpiresByType audio/mp3 "access 3 day"
ExpiresByType audio/wav "access 3 day"
ExpiresByType text/css "access 3 day"
ExpiresByType application/pdf "access 3 day"
ExpiresByType text/x-javascript "access 3 day"
ExpiresByType application/x-shockwave-flash "access 3 day"
ExpiresByType image/x-icon "access 3 day"
ExpiresDefault "access 3 day"
</IfModule>

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий