500 internal server error after changing Wordpress URL

Posted July 16, 2015 11.6k views

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?


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.

Submit an Answer
1 answer

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

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 = ""  where option_name = 'siteurl'; 

Above query will update the siteurl for you.

edited by kamaln7