douba2011 2017-09-25 07:04
浏览 56

从子域移动到Wordpress到子文件夹后,单个帖子页面不显示内容

I have moved my site http://sarkariresults.yarbook.com to the subfolder http://www.yarbook.com/sarkariresulthindi/

After I moved the site from the sub-domain to the sub-folder, the home page http://www.yarbook.com/sarkariresulthindi/ is working properly, but when I click on a post link, it shows the main domain name content (home page), not the subfolder post.

What could be the cause and how can I fix it?

  • 写回答

1条回答 默认 最新

  • douyoufan7881 2017-09-25 07:55
    关注

    it's seems you have only moved files and you didn't update the url in your database. You need to apply a search/replace in your database in order to update the url from http://sarkariresults.yarbook.com to http://www.yarbook.com/sarkariresulthindi/. You may do this :

    1) using plugin such as https://fr.wordpress.org/plugins/wp-migrate-db/ in the dashboard of your site.

    2) accessing phpmyadmin of your site and update the database manually

    if both solution didn't work, you may put back your site in the previous subdomain and search in the net How to migrate wordpress site. You will get step by step solutions.

    Also don't forget to always go to Permalinks setting and hit save even if there is no changes. It will allow wordpress to update your url structure and edit the htaccess file depending on your new location.

    In all the cases it's important to do a backup of your files and databases.

    评论

报告相同问题?

悬赏问题

  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?