![](/img/trans.png)
[英]The htaccess file in my root is redirecting my wordpress site in my /apply/ directory to my root index. Help! :\
[英]Changes to .htaccess file keep crashing my Wordpress site
不久前,我开始遇到一个问题,每隔几天,我的 Wordpress 站点就会崩溃。 该站点不会加载,而是只下载 index.php 的内容。
经过一番调查,我发现在 .htaccess 文件中注释掉以下行解决了这个问题:
AddHandler application/php-70 .php
但是,我对那条线的评论总是以某种方式被覆盖。
所以这是我的问题:
附加信息:SiteGround 托管上的 Wordpress 5.4.2
似乎某些插件正在覆盖您在 .htaccess 中的更改,请查看此链接https://wordpress.org/support/topic/php-version-change-can-break-htaccess ,它解决了类似的问题。
此外,您可以按照https://www.siteground.com/kb/how_to_have_different_php_versions/此处的说明进行操作,并且您应该(如果可以)将 php 版本更改/升级到所需版本。
或者,您可以chmod 655 .htaccess
文件来禁用任何写入它的插件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.