Question

500 internal server error after changing Wordpress URL

Hi there-

I’m getting a 500 internal server error whenever I try to load up my website. I made a mistake earlier when I was using Wordpress. I accidentally put an incorrect URL for my site in the in the admin dashboard, which messed up the site. I hardcoded the variables inside wp-config.php, so I could load the site again. This worked, however, I made the mistake of deleting these variables once the site was working. Since then I am getting a 500 internal server error, and every page on my site is blank. When I put the variables in again, to define the site URL, it didn’t work. I have already checked the .htaccess file and disabled plugins, which did not work. Any ideas?

Thanks.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You can always change the siteurl option in the database directly, it’s in the wp_options table of your database. On SSH

mysql wp_dbname

select * from wp_options where option_name = 'siteurl';  

Above query will show you the current siteurl

update wp_options set option_value = "http://yourwordpresssitename.com"  where option_name = 'siteurl'; 

Above query will update the siteurl for you.