dongya4335 2018-07-13 07:13
浏览 78

wp-login broken admin redirect

I have two Wordpress sites in two different languages.

The second one was cloned from the first one. Everything is good and the site looks the same. The issue starts when I log into the admin panel of the second site.

By logging into www.mysite1.com/wp-login.php the redirect will be www.mysite1.com/wp-admin/index.php

Instead the second site redirects me to www.mysite2.com/wp-admin the issue with this is that I have to manually modify the link to edit posts for example. If I go on and clock the posts link in the left sidebar it will take me to www.mysite2.com/edit.php instead of keeping the same structure as site 1 - www.mysite1.com/wp-admin/edit.php

I have to mention that I have already set siteurl and home options to being www.mysite2.com before migrating.

  • 写回答

1条回答 默认 最新

  • dongshengheng1013 2018-07-13 07:40
    关注

    I have found the solution to it in the wp-config.php file. $_SERVER['HTTP_HOST'] should be set to 'www.mysite2.com'

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100