2.14.3.1.3. Error 403 when opening XML file
If upon opening XML-file error 403 occurs, it is worth checking the file directives .htaccess
, which can be placed in the directory next to the desired XML-file and in parent directories. The problem occurs due to the fact that by default OpenCart places the file in some directories .htaccess
with directives to deny access to all files without exception. For example, in the file /system/.htaccess
in most cases, blocking of requests is indicated like this:
<Files *.*> Order Deny,Allow Deny from all </Files>
To provide access to all XML-files in the directory and its subdirectories (for example, /system/storage/download/
etc.) you need using filemanager or any FTPclient modify file .htaccess
by adding its directives like this:
<Files *.*> Order Deny,Allow Deny from all </Files> <Files *.xml> Order Allow,Deny Allow from all </Files>