Do you remember when I showed you a few ways to fuck WordPress ?, as one of them was, if you remember, change the WordPress Address field (URL) or Site Address (URL) a quick and effective way that your WordPress stops working instantly.
Ya, very cool but what if I did it, how do I fix it? .
Come on, do not be scared, it's easy, let's see two ways to fix it:  … Restore WordPress URL from the database …
For this you have to have access to the control panel of your hosting provider (old Christian hosting), and once there look for an access (it is safe) to PHPmyAdmin , the database manager, even if the icon says something else (for example MySQL).
Once PHPmyAdmin is open locate a field called "
siteurl " in the table '
wp_options ' or '
loquesea_options ' if the prefix of the tables has been changed, and there will be the URL wrong you put, so edit that line and change it for the real one. You will have to save the changes.
… Restore WordPress URL with the functions plugin …
What do you think about the previous method? , there is another option, resort to our beloved function plugin or failing to file
functions.php which for the case is the same.
Once located by your FTP client you just have to edit it and add these lines right at the beginning, immediately after opening PHP:
// reset wordpress url
update_option ( 'siteurl' 'http://midominiodeverdad.com' ) ;
update_option ( 'home' 'http://midominiodeverdad.com' ) ;
Save changes and try, you'll see how you fixed it.
… Restore WordPress URL with the configuration file …
That you do not have plugin of functions nor file
functions.php nor desire to create it, because nothing, here the method for vague of solemnity .
] Start – now if, please – your FTP client, connect to your server and open the WordPress configuration file (yes, that is called
wp-config.php ) and add these lines just before from where I gave That's what " That's it, stop editing and start blogging! ":
define ( 'WP_HOME' 'http://mydomain.com' ) ;
define ( 'WP_SITEURL' 'http://midominiodeverdad.com' ) ;
Save the changes and you already have it.
Do you want to know another way to fix it from the
wp-config.php ?, then review the article about how to change domain helped by
wp-config.php with function
relocate . It's also very simple, just follow the steps he took there.
And, do not say you do not have ways to fix it. Again, do not get involved, okay?