Провел своё "исследование".
Исходные данные
- Joomla 3.5.1 - чистая установка
- PHP 7
- Protostar
Попытка выйти из редактирования модуля (отмена, или сохранить)
===================
Джумловский htaccess (убрал комментарии)
Options +FollowSymlinks
Options -Indexes
RewriteEngine On
RewriteBase /
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
## Begin - Custom redirects
## End - Custom redirects
## Begin - Joomla! core SEF Section.
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
Отрабатывает нормально
Апач
"POST /component/config/ HTTP/1.1" 303 - "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET / HTTP/1.1" 200 5518 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
========================
Джумловский htaccess + добавка в зоне "custom redirects" (здесь и далее кэши чищены)
RewriteCond %{REQUEST_URI} (.*/[^/.]+)($|\?)
RewriteRule .* %1.html [R=301,L]
RewriteRule ^(.*)/$ /$1.html [R=301,L]
Ошибка. В адресной строке
http://site.ru/component/config/.htmlАпач
"POST /component/config/ HTTP/1.1" 301 245 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config.html HTTP/1.1" 500 4032 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /favicon.ico HTTP/1.1" 404 3438 "http://site.ru/component/config.html"
==========================
Джумловский htaccess + добавка в зоне "custom redirects"
RewriteCond %{REQUEST_URI} !\.html$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /$1.html [R=301,L]
Ошибка. В адресной строке
http://site.ru/component/config.htmlАпач
"POST /component/config/ HTTP/1.1" 301 246 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config/.html HTTP/1.1" 500 4032 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
==========================
Джумловский htaccess + добавка в зоне "custom redirects"
RewriteCond %{REQUEST_URI} !\.html$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/*$ /$1.html [R=301,L]
Ошибка. В адресной строке
http://site.ru/component/config/.htmlАпач
"POST /component/config/ HTTP/1.1" 301 246 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config/.html HTTP/1.1" 500 4032 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /favicon.ico HTTP/1.1" 301 240 "http://site.ru/component/config/.html"
"GET /favicon.ico.html HTTP/1.1" 404 3318 "http://site.ru/component/config/.html"
======================
Джумловский htaccess + добавка в зоне "custom redirects"
RewriteCond %{REQUEST_URI} !\.html$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)/*$ /$1.html [R=301,L]
Ошибка. В адресной строке
http://site.ru/component/config.htmlАпач
"POST /component/config/ HTTP/1.1" 301 245 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config.html HTTP/1.1" 500 4032 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
======================
Джумловский htaccess + добавка в зоне "custom redirects"
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /(.+?)/+$
RewriteRule .? /%1 [R=301,L]
RewriteCond %{REQUEST_URI} !\.html$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)/*$ /$1.html [R=301,L]
Ошибка. В адресной строке
http://site.ru/component/config.htmlАпач
"POST /component/config/ HTTP/1.1" 301 240 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config HTTP/1.1" 301 245 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config.html HTTP/1.1" 500 4032 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
===========================
Джумловский htaccess + добавка в зоне "custom redirects"
RewriteRule ^index\.php(/.*)$ $1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)/+$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} !\.html$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!component/)(.+)$ /$1.html [R=301,L]
Ошибка. В адресной строке
http://site.ru/component/configАпач
"POST /component/config/ HTTP/1.1" 301 240 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /component/config HTTP/1.1" 500 4032 "http://site.ru/index.php?option=com_config&controller=config.display.modules&id=1&return=aHR0cDovL2NsZWFuLnJ1Lw%3D%3D"
"GET /favicon.ico HTTP/1.1" 301 240 "http://site.ru/component/config"
"GET /favicon.ico.html HTTP/1.1" 404 3318 "http://site.ru/component/config"