CMS Joomla. Не работает 301 Редирект с .html на без .html

dezoleg
7 років
0
Помогите никак не лечитться редирект выдает 404

#Options +FollowSymLinks
RewriteEngine On

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script

RewriteCond %{REQUEST_URI} !^/index\.php

# and the requested path and file doesn't directly match a physical file

RewriteCond %{REQUEST_FILENAME} !-f

# and the requested path and file doesn't directly match a physical folder

RewriteCond %{REQUEST_FILENAME} !-d

# internally rewrite the request to the index.php script

RewriteRule .* index.php [L]

#
## End - Joomla! core SEF Section.

REDIRECTMATCH 301 (.*)\.html$ 24studio.kiev.ua$1

#RewriteBase /
#RewriteRule (.*)\.html$ $1 [R=301,L]
#RewriteRule (.*)\.html$ 24studio.kiev.ua/$1 [R=301,L]
#RewriteRule (.*)\.html$ $1 [R=301,L]
Сергей М.
7 років
2
Чтобы подобные правила работали расширение html нужно удалить в разделе "Хостинг - Мои сайты - Настройка сайта - Статические файлы"
Также все запросы с помощью правила
RewriteRule .* index.php [L]

передаются на index.php поэтому правила редиректа лучше разместить сразу после
RewriteEngine On
Тема закрита.