Update .htaccess like XE 1.11.3

This commit is contained in:
Kijin Sung 2019-03-26 10:58:14 +09:00
parent ecd36ae815
commit f81a98cde3
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ RewriteEngine On
# block direct access to templates, XML schema files, config files, dotfiles, environment, etc. # block direct access to templates, XML schema files, config files, dotfiles, environment, etc.
RewriteCond %{REQUEST_URI} !/modules/editor/(skins|styles)/ RewriteCond %{REQUEST_URI} !/modules/editor/(skins|styles)/
RewriteRule ^(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ - [L,F] RewriteRule ^(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ - [L,F]
RewriteRule ^files/(attach|config|cache/store)/.+\.php$ - [L,F] RewriteRule ^files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ - [L,F]
RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F] RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F]
RewriteRule ^(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F] RewriteRule ^(\.git|\.ht|\.travis|codeception\.|composer\.|Gruntfile\.js|package\.json|CONTRIBUTING|COPYRIGHT|LICENSE|README) - [L,F]

View file

@ -5,7 +5,7 @@ location ~ ^/rhymix/modules/editor/(skins|styles)/.+\.html$ {
location ~ ^/rhymix/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ { location ~ ^/rhymix/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ {
return 403; return 403;
} }
location ~ ^/rhymix/files/(attach|config|cache/store)/.+\.php$ { location ~ ^/rhymix/files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
return 403; return 403;
} }
location ~ ^/rhymix/files/(env|member_extra_info/(new_message_flags|point))/ { location ~ ^/rhymix/files/(env|member_extra_info/(new_message_flags|point))/ {

View file

@ -5,7 +5,7 @@ location ~ ^/modules/editor/(skins|styles)/.+\.html$ {
location ~ ^/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ { location ~ ^/(addons|common/tpl|files/ruleset|(m\.)?layouts|modules|plugins|themes|widgets|widgetstyles)/.+\.(html|xml)$ {
return 403; return 403;
} }
location ~ ^/files/(attach|config|cache/store)/.+\.php$ { location ~ ^/files/(attach|config|cache/store)/.+\.(ph(p|t|ar)?[0-9]?|p?html?|cgi|pl|exe|[aj]spx?|inc|bak)$ {
return 403; return 403;
} }
location ~ ^/files/(env|member_extra_info/(new_message_flags|point))/ { location ~ ^/files/(env|member_extra_info/(new_message_flags|point))/ {