dssqq82402 2015-12-09 06:08
浏览 48

为什么wordpress .htaccess会自动更新新代码?

I am facing a serious problem. I am looking for some assistance.

I have a wordpress site. There is some code in the .htaccess file installed automatically or after installing a plugin. I am not actually sure why this has happened. Do you have any idea?

#FcgidWrapper /usr/local/cpanel/cgi-sys/1h-fast-php54 .php
AddHandler application/x-httpd-php54 .php .php5 .php4 .php3
<IfModule mod_headers.c>
    <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
    </FilesMatch>
</IfModule>

For this code I got a warning from wordpress backend.

Warning: Cannot modify header information - headers already sent

When I remove those code from .htaccess it works again.

The last plugin I used was SIP Reviews Shortcode for WooCommerce and YITH WooCommerce Advanced Reviews.

Can anyone give me any idea why those portion of code added in the .htaccess

Thanks in advance

  • 写回答

1条回答 默认 最新

  • dongrou839975 2015-12-09 06:28
    关注

    I'm guessing it is a plugin that has done this... one that might be corrupt or just not work very well. At first I thought it was a security thing, which it could be... meaning something that you've actually asked (likely unknowingly) a plugin to do for you.

    I suggest you disable/deactivate plugins you've installed recently (right before you started having this error), and then only enable the ones you REALLY want/need ONE AT A TIME.

    By re-enabling them one at a time, you should be able to determine which one is corrupting your site. You'll likely be able to find a suitable replacement for it in the WordPress.org Plugin Repository very quickly.

    Remember that a lot of plugins (especially free ones) are put up for other users to download as soon as the authors can get them up, and not necessarily only until they are absolutely pristine.

    Good luck.


    Upon looking at your original post again, it looks like some program is trying to append rules to your php system as a third-party program? This could be server-related (contact your hosting company), or it could also somehow be another WordPress Plugin issue. One of those should be the root of the problem.

    评论

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助