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

HTTP status 404 (error) when trying to log in

programmeradmin0浏览0评论

I've changed the http:// host to https://, then accidentally saved it. Now I can't log in to the admin panel having '404 Not Found' page. How can I fix this?

I've changed the http:// host to https://, then accidentally saved it. Now I can't log in to the admin panel having '404 Not Found' page. How can I fix this?

Share Improve this question edited Oct 18, 2019 at 7:35 Max Yudin 6,3882 gold badges26 silver badges36 bronze badges asked Oct 18, 2019 at 1:33 kristinekristine 1 2
  • Welcome to WordPress Development. I hope you find the answer(s) you are looking for. Our site is different from most - if you have not done so yet, consider checking out the tour and help center to find out how things work. – Matthew Brown aka Lord Matt Commented Oct 18, 2019 at 1:44
  • if you have access to phpmyadmin, you need to update your database ( http://.... to https://.... ), – maverick Commented Oct 18, 2019 at 7:08
Add a comment  | 

2 Answers 2

Reset to default 0
define( 'WP_HOME', 'http://example' );
define( 'WP_SITEURL', 'http://example' );

Add this to your wp-config.php which you can find in the root of your website. Remember to change example to your URL.

Before I start, I should point out that I am making a few educated guesses about what you have done exactly. I will try to cover as much as I can. This is most likely an issue with the way your hosting is set up. WP.SE is not the ideal question to ask about that. However, depending on how comfortable you are with accessing the database itself, you should be able to locate the entry and revert your changes.

If you have access to your database, say with PHPMyAdmin, you can look for the wp_options table. In there you can find the rows with option_name "siteurl" & "home". You could then edit the option_value to reflect the hostname you require. More help on doing that can be found here. There are plenty of search results you could also help, but this was one of the first ones I found.

If you made the change to your options file, you will need to use FTP or your hosting file editor to revert your changes.

That said, you may wish to look at how your hosting provider assigns HTTPS and check that it is enabled, pointed at the same folder and has a valid certificate. You'd have to take to hosting support if you need help with that.

发布评论

评论列表(0)

  1. 暂无评论