1

I installed wordpress on ubuntu using this guide

I uploaded my backup and everything went fine until I tried to use my domain. Whenever I try to change from http://20.210.236.41 to my domain http://mostmarv.com/ I instantly lose access and have to login via ssh and change the domain back in the Mysql table, e.g.

 UPDATE wp_options SET option_value = 'http://20.210.236.41' WHERE option_name IN ('siteurl', 'home');

I can then access again. I tried using the plugin really simple ssl and then lost access to my homepage. I'm going crazy, anyone have any ideas?

1

1 Answer 1

1

The first domain listed in your question has the wp-admin slug, the 2nd doesn't. You shouldn't be making that change. Hopefully it was just a typo, however if that's what you're actually doing that is likely your problem.

Also, you should be changing all instances of the old domain http://20.210.236.41 to the new domain WITH SSL https://mostmarv.com/. That way you don't need to use any SSL plugins.

If you can use WP-CLI this will work: wp search-replace http://20.210.236.41 https://mostmarv.com

Another option is to make the change in the dev server backend settings, download that db and then upload it to the new site.

One last option to get you up and running would be to add these lines to your wp-config.php file:

define('WP_HOME', 'https://mostmarv.com');
define('WP_SITEURL', 'https://mostmarv.com');

These 2 options could let you at least get the site live, but could cause a lot of problems though because WordPress uses the URL string an many other places thoughout the site. So you're better off using WP-CLI or other software that will search for every instance of the older address or URL.

TLDR : Just changing your home and siteurl is not enough to completely transfer your site from one domain to another. You need to find all references to the old address.

2
  • thanks for tip Success: Made 426 replacements.. Sadly had the same outcome. {I removed typo}. I also tried http://mostmarv.com, didn't work either.
    – SeanJ
    Commented Feb 13, 2023 at 0:05
  • Definitely need to know what your errors are then. When I try to visit your "live" domain it says that isn't a valid domain...
    – rudtek
    Commented Feb 13, 2023 at 5:54

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.