网站 roural.ru 在加载带有模板“父目录”和“目录”的页面时收到 HTTP 错误 ERROR 500。示例:http ://roural.ru/oborudovanie-benza.html
同时,带有“final final”模板的页面正常打开,响应为 200。示例:http ://roural.ru/nasos-perekachki-masla-benza-11.html
我试图做什么:我在托管设置中更改了 php 版本,我尝试了 5.6-7.4 的所有内容现在 php 7.4 我尝试了不同的 .htaccess 设置库存也尝试了最小设置我清理了缓存,在管理面板中并物理删除缓存文件夹中的所有内容
现在htaccess是这样的
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /home/t/toppropv/roural.ru/public_html/PHP_errors.log
php_value error_reporting 2047
php_value log_errors_max_len 0
<Files PHP_errors.log>
Require all denied
</Files>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.roural.ru$ [NC]
RewriteRule ^(.*)$ http://roural.ru/$1 [R=301,L]
RewriteCond %{QUERY_STRING} ^.*more=1.*
RewriteRule . - [R=404,L,NC]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
php_flag register_globals Off
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
<ifModule mod_headers.c>
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</ifModule>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP
RewriteRule ^index\.php$ http://roural.ru/ [R=301,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.htm\ HTTP
RewriteRule ^index\.htm$ http://roural.ru/ [R=301,L]
这是怎么回事?
这是 URL 设置的样子