500 internal server error after changing Wordpress URL

July 16, 2015 6.4k views
WordPress Apache

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?


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 = "http://yourwordpresssitename.com"  where option_name = 'siteurl'; 

Above query will update the siteurl for you.

edited by kamaln7
Have another answer? Share your knowledge.