I tried to change the old URLs of my website to the new website URLs. The old domain was https://example.com/sophie (a subdomain) and the new domain was https://newexample.com (examples). However, I got a 500 internal error when I click links on the updated website. The homepage is working well. More information: I manually changed the sites URL in the database with:
/* MySQL: */ update wp_options set option_value = 'https://newexample.com' where option_name = 'siteurl'; update wp_options set option_value = 'https://newexample.com' where option_name = 'home';
and in wp-config with: define('WP_HOME','https://newexample.com'); define('WP_SITEURL','https://newexample.com');
I cleared the cache of the server and the browser after adding those lines.
What went wrong? And how can I solve this?