admin管理员组

文章数量:1429368

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 5 years ago.

Improve this question

I tried force SSL certificate without observing all parameters, not understanding how it works, at my backend wp-admin, setting, changed HTTP to HTTPS and now can't access my backend any more and when I try to open my site, keep getting the following error in my browser:

Secure Connection Failed

What does this error mean and how can I fix it?

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 5 years ago.

Improve this question

I tried force SSL certificate without observing all parameters, not understanding how it works, at my backend wp-admin, setting, changed HTTP to HTTPS and now can't access my backend any more and when I try to open my site, keep getting the following error in my browser:

Secure Connection Failed

What does this error mean and how can I fix it?

Share Improve this question edited Apr 27, 2019 at 21:38 norman.lol 3,2413 gold badges30 silver badges35 bronze badges asked Apr 26, 2019 at 0:51 opjbullopjbull 191 silver badge2 bronze badges 2
  • your website needs database update ( replacing url containing http with https ) – maverick Commented Apr 26, 2019 at 3:44
  • @maverick – Seems OP has no SSL certificate at all. – norman.lol Commented Apr 27, 2019 at 19:54
Add a comment  | 

3 Answers 3

Reset to default 0

Assuming that (it's not clear from your question):

  • you change htaccess to redirect http request to https (best way, IMHO). Lots of googles on that; your hosting place should also have guidance specific to thier hosting environment.
  • you changed the two URLs in the wp-options table to show the full URL with https

That's all that is really required for https, assuming that your hosting place has properly installed the SSL certificate.

If you have done the above, then please edit your answer to provide more (and detailed) details about what you have done so far, and what doesn't; work.

Note that will also need to do a search/replace for http://www.example replace with https://www.example . In particular, the media library items in the database will have the old URL. Lots of plugins to help with that; I like the "Better Search and Replace" plugin.

Of course, backups of database is always important when making changes.

If you can't access the site via your browser, try to get in via ftp, cPanel or the like. Find the wp-config.php file in the main site folder and add a direct link to your desired address, eg.

define( 'WP_HOME', 'http://example' );
define( 'WP_SITEURL', 'http://example' );

You can remove or update this whenever you wish.

This is as per https://codex.wordpress/Changing_The_Site_URL

Go to the phpmyadmin ->choose your site Database-> there is table 'wp_options' open it -> site url -> change it to as before like http: then redirect to https from .htaccess file from cpanel

本文标签: sslSite not reachable due to change from HTTP to HTTPS