..start..fly..

扫一扫
Guestbook

Home / Others /PHP & Wordpress /Websites / wordpress报错The server encountered an internal error

<< 血管解剖学图谱-血管造影方法PDF图书下载wordpress的Gravatar头像本地化 >>

在打开网站的时候突然提示网站的留言板功能失败,并且提示如下错误:

The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@legendhust and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.

评论框错误截图如下:

error

在网上查阅了一下,有的提示说是服务器问题,不过,再次也可以广告一下,本人用的是西部数码的服务器,其实已经是非常不错的服务器了,所以逐一排查,发现原来最近更改过.htaccess文件,于是恍然大悟,原来是因为出于禁用机器人垃圾评论的需要,禁用了wp-comments-post.php。于是乎,更改网站根目录下的wp-comments-post.php文件名,并在theme目录下更改comments.php里的新的wp-comments-post.php调用地址就解决了。如下是屏蔽机器人的.htaccess文件:

  1. # BEGIN 不良自主软件拦截器   
  2. SetEnvIfNoCase User-Agent “Abonti|aggregator|AhrefsBot|asterias|BDCbot|BLEXBot|BuiltBotTough|Bullseye|BunnySlippers|ca-crawler|CCBot|Cegbfeieh|CheeseBot|CherryPicker|CopyRightCheck|cosmos|Crescent|discobot|DittoSpyder|DotBot|Download Ninja|EasouSpider|EmailCollector|EmailSiphon|EmailWolf|EroCrawler|Exabot|ExtractorPro|Fasterfox|FeedBooster|Foobot|Genieo|grub-client|Harvest|hloader|httplib|HTTrack|humanlinks|ieautodiscovery|InfoNaviRobot|IstellaBot|Java/1\.|JennyBot|k2spider|Kenjin Spider|Keyword Density/0\.9|larbin|LexiBot|libWeb|libwww|LinkextractorPro|linko|LinkScan/8\.1a Unix|LinkWalker|LNSpiderguy|lwp-trivial|magpie|Mata Hari|MaxPointCrawler|MegaIndex|Microsoft URL Control|MIIxpc|Mippin|Missigua Locator|Mister PiX|MJ12bot|moget|MSIECrawler|NetAnts|NICErsPRO|Niki-Bot|NPBot|Nutch|Offline Explorer|Openfind|panscient\.com|PHP/5\.\{|ProPowerBot/2\.14|ProWebWalker|Python-urllib|QueryN Metasearch|RepoMonkey|RMA|SemrushBot|SeznamBot|SISTRIX|sitecheck\.Internetseer\.com|SiteSnagger|SnapPreviewBot|Sogou|SpankBot|spanner|spbot|Spinn3r|suzuran|Szukacz/1\.4|Teleport|Telesoft|The Intraformant|TheNomad|TightTwatBot|Titan|toCrawl/UrlDispatcher|True_Robot|turingos|TurnitinBot|UbiCrawler|UnisterBot|URLy Warning|VCI|WBSearchBot|Web Downloader/6\.9|Web Image Collector|WebAuto|WebBandit|WebCopier|WebEnhancer|WebmasterWorldForumBot|WebReaper|WebSauger|Website Quester|Webster Pro|WebStripper|WebZip|Wotbox|wsr-agent|WWW-Collector-E|Xenu|Zao|Zeus|ZyBORG|coccoc|Incutio|lmspider|memoryBot|SemrushBot|serf|Unknown|uptime files” bad_bot   
  3. Deny from env=bad_bot   
  4. # END 不良自主软件拦截器   
  5. <Files wp-comments-post.php>   
  6. Require all denied   
  7. </Files>  

PS:网站报错的时候,首先还是应该从自身查找原因,除非是空间供应商的网站大面积拓机。

Related Posts

转载原创文章请注明,转载自:SKY..fly..[www.sky.gs]

本文链接: https://www.sky.gs/websites/wordpress-error-internal-error.html

QR:  wordpress报错The server encountered an internal error

2 Responses to “wordpress报错The server encountered an internal error”

  1. G says:

    如果每次都能找出来就好了

Leave a Reply

Code (☆)2+5=?


Websites powered by Wordpress6.7.1 Copyright © 2009-2025 - All Rights Reserved   SKY..fly..