RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题 / 1452501
Accepted
Dimych
Dimych
Asked:2022-09-29 05:48:03 +0000 UTC2022-09-29 05:48:03 +0000 UTC 2022-09-29 05:48:03 +0000 UTC

MODX HTTP ERROR 500 上的站点

  • 772

网站 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 设置的样子

在此处输入图像描述

.htaccess url
  • 1 1 个回答
  • 20 Views

1 个回答

  • Voted
  1. Best Answer
    Anton Tarasov
    2022-09-29T11:36:43Z2022-09-29T11:36:43Z

    这一切是从哪里开始的?或者这些页面从来没有工作过?您最好的选择是升级到 2.8 版本,这是 PHP 7.4 的相当旧的 MODX。您还可以尝试缓解有问题的模板 - 一次禁用所有插件,所有片段,然后将它们一一打开,从而定位问题。是的,当然您需要将当前软件包带到当前版本。

    • 0

相关问题

  • 从 .htaccess 规则中排除所有子目录

  • .htaccess - 排除某些类型(扩展名)的文件。如何实施?

  • 我不小心把 [301, L] 永久链接到站点的域,现在站点已关闭,我该怎么办?

  • 如何找到索引页面并重定向到新站点?

  • 如何禁用对除 index.php 之外的所有 php 文件的 IP 访问?

  • 告诉我如何通过 .htaccess 正确形成重定向规则

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5