Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a loclhost site that I heard I can migrate the site by just copy and paste the whole site from local to host if I changed WordPress Address (URL) and Site Address (URL) to my current hosted site address and then upload it to the host (which I am doing now)

Problem is that now when I try to login my local site it will always redirect to my actual website.

How can I fix my loclhost site setup so it back to its original loclhost address?

============UPDATE==================================== Added below files into the wp-config of the Wordpress:

define('WP_SITEURL', 'http://localhost/a02business');
define('WP_HOME', 'http://localhost/a02business');

Result: When try to login, the page will still be directed to the actual website not my local site....

Help plz

share|improve this question
1  
The update is really a different question. Your original problem was that you broke your local install. The update is about the remote server. Those are different animals and the solutions are likely to be different. –  s_ha_dum Feb 15 '13 at 17:09
    
Ok, got you. I will post another thread for this! Thanks..........and here is my new question location!wordpress.stackexchange.com/questions/87062/… –  Adam Feb 15 '13 at 17:14
add comment

1 Answer 1

up vote 1 down vote accepted

It sounds like you change the configuration on the local server. You need to put it back. that local configuration information needs to remain unchanged if you intend to continue working on the local copy, which you should. Breaking a local development version of the site is a lot less painful than breaking the live version. :)

The easiest way to sort this out is to add the following two lines to your wp-config.php file on your local server.

define('WP_SITEURL', 'http://example.com/wordpress');
define('WP_HOME', 'http://example.com/wordpress'); 

Obviously, the domain needs to be changed-- probably to localhost but if the local server has a static (internal) IP using the xxx.xxx.xxx.xxx IP is better.

I don't know what else you did so there may be more steps but I hope that fixes it.

For reference:

  1. http://codex.wordpress.org/Moving_WordPress
  2. http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29
share|improve this answer
    
Wow, that's fast :D thanks :) I am still uploading the file ( tethered internet lol) so, I will try it out once its finished uploading! –  Adam Feb 15 '13 at 16:22
    
Thank you very much I will update the question status or comment again to let you know :) –  Adam Feb 15 '13 at 16:23
    
What do you mean "uploading"? You said this was to get a local install working again. –  s_ha_dum Feb 15 '13 at 16:25
    
yes, I change the site url then I upload the site to the host, and its in the middle of the upload, which just finished now. Responding in few min –  Adam Feb 15 '13 at 17:02
    
*explaination: I uploaded the site after I changed the local url to a hosting server's url, so that why the local will keep direct to the hosting server's url. Now I am trying, brb –  Adam Feb 15 '13 at 17:03
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.