2.14.3.1.3. Error 403 when opening XML file

If error 403 occurs when you open an XML file, check directives in .htaccess file. File can be located both in directory next to required XML file and in parent directories. Problem occurs because OpenCart by default places .htaccess file with access deny directives for all files without exceptions in some directories. For example, in /system/.htaccess file in most cases request blocking is specified as follows:

<Files *.*>
    Order Deny,Allow
    Deny from all
</Files>

To provide access to all XML files in directory and its subdirectories (for example, /system/storage/download/ and others), use file manager or any FTP client to modify .htaccess file and extend its directives as follows:

<Files *.*>
    Order Deny,Allow
    Deny from all
</Files>
<Files *.xml>
    Order Allow,Deny
    Allow  from all
</Files>
Content