Newbie Mistake: Wordpress 500 internal server error, please help.

Status
Not open for further replies.

Makavelimob

New member
Aug 20, 2008
513
2
0
Hey guys, i fucked up. I made the newbie mistake of changing my wp settings urls (Blog and Home). I've been searching for an answer, so far, i've been able to view my blog again but cannot access it through the admin. Is there anyway you guys can steer me in the right direction?? Thank you, please keep all dick rolls to a mininum.
 


http://codex.wordpress.org/Changing_The_Site_URL

1. FTP to the site, and get a copy of the active theme's functions.php file. You're going to edit it in a simple text editor (like notepad) and upload it back to the site.

2. Add these two lines to the file, immediately after the initial "<?php" line.

update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');

Use your own URL instead of example.com, obviously.

3. Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly, if you can use that, do so.

4. Load the login or admin page a couple of times. The site should come back up.

5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.

If there is no functions.php file in the theme: Create a new text file called "functions.php". Edit it with notepad, and add this text to it, using your own URL instead of example.com:

<?php
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');

Upload that to your theme directory, then proceed as stated above. Remove the file afterwards.
 
  • Like
Reactions: lemons884
already used this, helped me get on to my site but still giving me shit with the admin log in. Will try again from the start tomorrow.
 
delete .htaccess from site root. paypal me $20 for the solution. Post tit pic of hot girlfriend!
 
You will probably have to go into your database and change them directly. They are in the table `wp_options` and there will be at least 2 fields you need to change.

Also compare the stock .htaccess with yours and see if there are noticeable differences.
 
You can also access the home and siteurl settings by going to hxxp://mywpinstall.com/wp-admin/options.php. This way you don't have to mess with the db if you're uncomfortable with that.
 
Status
Not open for further replies.