Skip to content

Commit 0afd7b5

Browse files
MAGETWO-52867: [APPSEC-1446] Sensitive server information disclosure upon specific URL requests
1 parent e806304 commit 0afd7b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: pub/.htaccess

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@
197197
deny from all
198198
</Files>
199199

200+
# For 404s and 403s that aren't handled by the application, show plain 404 response
201+
ErrorDocument 404 /errors/404.php
202+
ErrorDocument 403 /errors/404.php
203+
200204
############################################
201205
## If running in cluster environment, uncomment this
202206
## http://developer.yahoo.com/performance/rules.html#etags

0 commit comments

Comments
 (0)