Report this

What is the reason for this report?

500 internal server error after changing Wordpress URL

Posted on July 16, 2015

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.



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.