wordpress继承自开发人员,现在无法登录

时间:2017-04-23 16:52:38

标签: php wordpress .htaccess

我有一个wordpress工作,我从以前的开发人员那里得到了他们抛弃了项目,现在每当我试图去尝试登录网站时,它都是这样的

www.website.com/wp-login.php 

它会重定向到www.website.com/not_found,并在页面上显示以下错误

Warning: require(/home2/website/public_html/wp-includes/functions.php): failed to open stream: No such file or directory in /home2/website/public_html/wp-settings.php on line 65

Fatal error: require(): Failed opening required '/home2/website/public_html/wp-includes/functions.php' (include_path='.:/opt/php54/lib/php') in /home2/website/public_html/wp-settings.php on line 65

我的htaccess文件已链接

Pastebin

看起来问题在这里,但不确定我如何解决它

RewriteCond %{SCRIPT_FILENAME} !^(.*)admin-ajax\.php
RewriteCond %{HTTP_REFERER} !^(.*)website.com/wp-admin
RewriteCond %{HTTP_REFERER} !^(.*)website.com/wp-login\.php
RewriteCond %{HTTP_REFERER} !^(.*)website.com/cviiz-giris
RewriteCond %{HTTP_REFERER} !^(.*)website.com/cviiz-yonet
RewriteCond %{HTTP_REFERER} !^(.*)website.com/cviiz-kayit
RewriteCond %{QUERY_STRING} !^vdotwwiq6u0zu411l3y6b
RewriteCond %{QUERY_STRING} !^action=logout
RewriteCond %{QUERY_STRING} !^action=rp
RewriteCond %{QUERY_STRING} !^action=register
RewriteCond %{QUERY_STRING} !^action=postpass
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^.*wp-admin/?|^.*wp-login\.php /not_found [R,L]

1 个答案:

答案 0 :(得分:0)

下载http://wordpress.org/latest.zip然后解压缩。将wp-includes / functions.php复制到您网站内的wp-includes。

删除.htaccess然后尝试登录。如果您使用自定义固定链接,则转到固定链接,然后单击“保存”按钮。