0 Пользователей и 1 Гость просматривают эту тему.
  • 1 Ответов
  • 2766 Просмотров
*

AtlantisDM

  • Осваиваюсь на форуме
  • 22
  • 2 / 0
Здравствуйте. На своем старом сайте в .htaccess увидел строку:

Код
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]

Сейчас установил новую версию Joomla 3.9.2 и сравниваю htaccess. Этой строки нет в новом htaccess.
Что значит эта строка и нужна ли она в Joomla ?

Если конкретно, то строка была в этой секции, где все остальное стандартно:
Код
## 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
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# 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.
*

AtlantisDM

  • Осваиваюсь на форуме
  • 22
  • 2 / 0
А, все, уже разобрался. Эта строка была на старых версиях Joomla. Раз в новых версиях ее убрали, значит видимо она уже не нужна.

Вот эта строка в старых версиях Joomla:
Код
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как сделать универсальный редирект в htaccess?

Автор Lemonez

Ответов: 3
Просмотров: 494
Последний ответ 16.02.2022, 00:38:09
от gartes
Убрать component при выводе статей при нажатии на метку

Автор Dolphin4ik_1

Ответов: 1
Просмотров: 510
Последний ответ 08.09.2020, 15:33:57
от stepan39
Файлы.htaccess и webconfig

Автор xandr555

Ответов: 7
Просмотров: 865
Последний ответ 16.12.2019, 11:54:01
от AlexB
htaccess - переадрессация всех страниц на одну, как?

Автор x1

Ответов: 6
Просмотров: 835
Последний ответ 23.11.2019, 21:38:04
от x1
Перебрасывает на главную при защите папки паролем через.htaccess

Автор geomant

Ответов: 0
Просмотров: 1308
Последний ответ 23.11.2019, 07:46:00
от geomant