我这个goddy的服务器差劲的很,在这里很不建议购买狗爹的服务器,订制化很差,网络很差。
在godaddy上搭了一个wordpress,通过cPanel搭建的,傻瓜式,一键式部署,但是有个问题,godaddy会在每篇文章的代码里加一段自己的脚本:
<script>’undefined’=== typeof _trfq || (window._trfq = []);’undefined’=== typeof _trfd && (window._trfd=[]),_trfd.push({‘tccl.baseHost’:’secureserver.net’}),_trfd.push({‘ap’:’cpsh’},{‘server’:’p3plcpnl0799′}) // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src=’https://img1.wsimg.com/tcc/tcc_l.combined.1.0.6.min.js’></script></html>
说什么用于服务器监控的。但是这个代码对AMP是有影响的,Google的AMP要求不能有第三方的script。
那么怎么才能去掉呢,可以参考这篇文章:https://wallydavid.com/remove-godaddys-broken-monitoring-script-added/
或者打开https://myh.godaddy.com/#/hosting/cpanel/,在右上方的“cPanel管理员”的旁边有“...”,点击“...”,选择“帮助我们”,里面就可以不让他们监控我们服务器了,那段脚本就没了。