Hi,
I setup .htaccess on my server but I still can direct access .twig file. Even demo OpenCart have the same problem. You can check it here:
https://demo.opencart.com/catalog/view/ ... /edit.twig
How can I fix it? Please help. Thank you.
Well - it doesn't matter really
All the files are available in any OC download.
Its no different from view source of html - pretty harmless
All the files are available in any OC download.
Its no different from view source of html - pretty harmless
But does it mean .htaccess didn't work? Because these lines in .htaccess
It should prevent direct access to .twig files
Code: Select all
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
Yes, should work.
But you are sure htaccess is .htaccess and not .htaccess.txt ?
Apache or Nginx?
But you are sure htaccess is .htaccess and not .htaccess.txt ?
Apache or Nginx?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Who is online
Users browsing this forum: No registered users and 150 guests