0

I accidentally changed the wordpress address on the dashboard from http:// to https:// and now cant access the dashboard to change it back. is there anything i can do?

2 Answers 2

1

You can log in to your phpMyAdmin and change the values "siteurl" and "home" in the database table wp_options.

1

Besides what Castiblanco said, you should be able to solve this another way.

Download your wp-config.php and add those lines

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

These values override the ones in the database. You should be able to log back in and change it back.

2
  • I tried this but i still can't log in. I'm only supposed to change the example.com to my site right?
    – ann
    Aug 21, 2018 at 18:00
  • @ann Sorry, had to go. Did you change anything to make it work? If you don't mind, you can mark either of the answers as accepted
    – kero
    Aug 22, 2018 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.