в консоли браузера абсолютно ничего, несмотря на то, что вроде как я включил вывод ошибок. но я пришлю лог который достал из хостинга и файл config.php и .htaccess.
логи (Twig_Loader_Array' вроде исправил):
Jan 11 03:58:35 vh324 apache_error[80527]: apstehno.ru [Sat Jan 11 03:58:35 2025] [alert] [pid 34357] config.c(2215): [client 181.56.158.150:41358] /home/c/co77814/apstehno/public_html/.htaccess: Invalid command 'php-flag', perhaps misspelled or defined by a module not included in the server configuration
Jan 11 04:27:49 vh324 apache_error[80527]: apstehno.ru [Sat Jan 11 04:27:49 2025] [error] [pid 24491] mod_autoindex.c(2329): [client 167.99.119.158:47062] AH01276: Cannot serve directory /home/c/co77814/apstehno/public_html/admin/controller/extension/extension/: No matching DirectoryIndex (index.php,index.htm,index.html,index.pl) found, and server-generated directory index forbidden by Options directive
/********/
.htaccess:
Options +SymLinksIfOwnerMatch
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)&?page=1$
RewriteRule ^(.*)/?$ /$1?%1%2 [R=301,L] #remove page=1 from url
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
php_flag display_errors On
php_value error_reporting 2047
Header always set Content-Security-Policy "upgrade-insecure-requests"
/******/
config:
<?php
// HTTP
define('HTTP_SERVER', '
http://apstehno.ru/');
// HTTPS
define('HTTPS_SERVER', '
https://apstehno.ru/');
// DIR
define('DIR_APPLICATION', '/home/c/co77814/apstehno/public_html/catalog/'😉;
define('DIR_SYSTEM', '/home/c/co77814/apstehno/public_html/system/'😉;
define('DIR_IMAGE', '/home/c/co77814/apstehno/public_html/image/'😉;
define('DIR_STORAGE', '/home/c/co77814/apstehno/storage/'😉;
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/'😉;
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/'😉;
define('DIR_CONFIG', DIR_SYSTEM . 'config/'😉;
define('DIR_CACHE', DIR_STORAGE . 'cache/'😉;
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/'😉;
define('DIR_LOGS', DIR_STORAGE . 'logs/'😉;
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/'😉;
define('DIR_SESSION', DIR_STORAGE . 'session/'😉;
define('DIR_UPLOAD', DIR_STORAGE . 'upload/'😉;