最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

database - wp-admin not accessible after migrating to local host (no plugin issue)

programmeradmin1浏览0评论

I migrated my local Wordpress site to my WPEngine account and it's been working without any problem!

After adding some content, I decided to export the database from the live version and import it to my local version so that they are synced. I adjusted the two siteurl and home fields in the database and the home page (https://localhost:8888) comes up well but the /wp-admin page is forced to https and responds with ERR_SSL_PROTOCOL_ERROR error.

All the other pages of the website cannot be loaded and return this error: Not Found The requested URL /news was not found on this server.

It seems like a "permalinks" reset problem for inner pages!

All these problems would go away if I switch the database back to the one I was using for local version so I'm pretty sure it's a database issue!

Thanks

I migrated my local Wordpress site to my WPEngine account and it's been working without any problem!

After adding some content, I decided to export the database from the live version and import it to my local version so that they are synced. I adjusted the two siteurl and home fields in the database and the home page (https://localhost:8888) comes up well but the /wp-admin page is forced to https and responds with ERR_SSL_PROTOCOL_ERROR error.

All the other pages of the website cannot be loaded and return this error: Not Found The requested URL /news was not found on this server.

It seems like a "permalinks" reset problem for inner pages!

All these problems would go away if I switch the database back to the one I was using for local version so I'm pretty sure it's a database issue!

Thanks

Share Improve this question asked Aug 15, 2020 at 4:41 Em KarimifarEm Karimifar 52 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I'm not sure but I would try 2 things

  • Change siteurl and homeurl into http:// and not https://, for https:// to work locally you'll need a local SSL certificate. You can easily manage this with MAMP PRO. But it's not required for your local site to work at all.
  • Could you check if .htaccess is missing from your projects root folder. This is the directory where wp-config.php is located. This has impact on the permalinks, most-likely if the homepage is working and nothing else is, the .htaccess is missing.

Hope this helps out

发布评论

评论列表(0)

  1. 暂无评论