dongwei4444 2017-10-30 23:00
浏览 256
已采纳

管理员登录页面上的wordpress 403错误

I've got a problem here. I have a wordpress site and accidentally changed the http to https and I am not sure that I could change it back. What is sure that it loged me out and when I reload the admin login page it throws an error that my connection is not private and after that I got a 403 Forbidden page.

I have access to the FTP and tried to change the wp_config file, no success. Tried adding this: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); it only made the admin page reachable when I entered the user and pass it reloaded the login page.

I also tried to delete the .htaccess file, perhaps it is corrupted, but did not help.

Please help me with this issue.

  • 写回答

2条回答 默认 最新

  • drpkcwwav20524605 2017-10-31 08:34
    关注

    I managed to enter the admin page finally! So I added these two lines to wp_admin.php: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); afterward deleted the .htaccess file, then deleted browsing history, cleared cache and cookies. After all of this I could enter the admin page.

    Then I went to options/general and options/permalinks and saved the setting, it generated a .htaccess file and now it is working.

    I also tried removing the two added lines from wp_admin.php after all, but I broke the page so they are going to stay for a while.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了