Quantcast
Channel: i have code blues » Misfortunes
Viewing all articles
Browse latest Browse all 5

Very helpful for WordPress.

0
0

Have you tried to change your WordPress site’s URL? Did it get all out of whack? Tried fixing it, emptied the cache, renamed folders, re-install it, etc…. well sometimes we bypass where the help really is. When that happens, you do this:

Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

define(‘WP_HOME’,'http://example.com’);
define(‘WP_SITEURL’,'http://example.com’);
This is not necessarily the best fix, it’s just hardcoding the values into the site itself. You won’t be able to edit them on the General settings page anymore when using this method.

-OR-

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 “

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.

Read entire help article here.


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images