Did i break my wordpress site?

psvman659

Registered Member
Joined
Dec 21, 2019
Messages
89
Reaction score
18
Hello guys, i just did something stupid.

I enabled SSL with a security plugin to force my website to run over https instead of http. But i do noot have a SSL certificate yet. Now my page does not load obviously. I have tried renaming the plugin in the filemanager, it makes my website show again, but the wp-admin does still not show. Any solution? The site is still new, i will not be mad if i have to start over again. Any help i can appreciate.

Sorry for my bad english.
 
It's ok - we've all done something stupid on a wordpress site at one time or another :D What happens when you try to access the wordpress backend? Are you hosting it on a server you manage, or with a remote host? If so, who are you using?

Couple of suggestions in the meantime:
First of all, I'd delete the plugin directory entirely.

If this doesn't work, there's a couple of suggestions to try. Have a look at your wp-config.php file and make sure the addresses are set to http instead of https

If you've got a custom login plugin, this might still think your backend needs redirecting to https and you could end up with a redirect loop - if you've got one of these plugins, try disabling that too.

Alternatively, you can try adding this code to your wp-config.php file:

Code:
/* SSL Settings */
define('FORCE_SSL_ADMIN', true);

/* Turn HTTPS 'on' if HTTP_X_FORWARDED_PROTO matches 'https' */
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
    $_SERVER['HTTPS'] = 'on';
}

source: https://wordpress.stackexchange.com...ng-serverhttps-on-prevents-access-to-wp-admin


Obviously, make sure you're backing up between each step - depending on your setup, any one of these operations could break the site even more so you need to make sure you can roll-back updates at any time.
 
Last edited:
Relax contact your hosting provider normally whenever I screw up they handle it for me two options are enable ssl and see if it’s working or restore from yesterday’s backup. If nothing works maybe these two can guide you though don’t pm wait for them to see this thread and they’ll reply here to you @Festinger or @kindablack if one of you’ll could help him
 
Back
Top