1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

moving worpress without shutdown

Discussion in 'Blogging' started by dewaz, Mar 30, 2012.

  1. dewaz

    dewaz Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    399
    Likes Received:
    47
    Home Page:
    Here the story:

    I have a website, let's name it website1.com
    Due to some hacking problem, slow and etc I would like to create fresh one without downtime.

    So, couple days a go I create sub-domain at my hosting and build fresh content, let's name it sub.website2.com. When everything has been ready I linked domain website1.com to sub.website2.com.

    But when I setting WordPress Address (URL) and Site Address (URL) into website1.com all pictures can't load. I tried to rename all script using plugins "search and replace" but not all of them can load. Some pics still blanks.

    My temporary action to resolve are setting
    WordPress Address (URL) --> sub.website2.com
    Site Address (URL) --> website1.com

    Everything looks like works fine. But google only indexed sub.website2.com and looks like didn't recognize website1.com.

    I want to set both WordPress Address (URL) andSite Address (URL) to website1.com.

    How can I do that?

    thank you in advance
     
  2. dotcomdesigns

    dotcomdesigns Power Member

    Joined:
    May 16, 2009
    Messages:
    673
    Likes Received:
    646
    Location:
    UK
    Sorry you lost me on this one :) It's actually very easy to move WordPress from one directory to another or even to change hosts. I think you need to check out the official site

    HTML:
    http://codex.wordpress.org/Moving_WordPress
     
    • Thanks Thanks x 1
  3. jamunkala

    jamunkala Regular Member

    Joined:
    Aug 14, 2010
    Messages:
    284
    Likes Received:
    55
    Location:
    India
    Home Page:
    People dont move change there website address due to hacking problems, and the images not appearing may be coz you have not updated the hotlink protection in cpanel to include the newly created subdomain.
     
  4. dewaz

    dewaz Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    399
    Likes Received:
    47
    Home Page:
    sorry for my bad english. thank you anyway.
     
  5. dewaz

    dewaz Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    399
    Likes Received:
    47
    Home Page:
    you're right, but how to solve it. I can't rename it one by one, it took decades.

    pics loaded when setting use sub.website2.com
    but I want setting using website1.com
     
  6. dotcomdesigns

    dotcomdesigns Power Member

    Joined:
    May 16, 2009
    Messages:
    673
    Likes Received:
    646
    Location:
    UK
    HTML:
    http://codex.wordpress.org/Moving_WordPress
    10: Existing image/media links uploaded media will refer to the old folder and must be updated with the new location. You can do this with the Velvet Blues Update URLs plugin, or with a search and replace tool, or manually in your SQL database, by following the instructions at Tamba2's Tutorial "Moving your weblog inside your PC".

    11: You must also check and edit 'store uploads folder' under Settings > Media or all your new uploads will continue to go into the old folder.
     
  7. dewaz

    dewaz Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    399
    Likes Received:
    47
    Home Page:
    I still in progress of backup process, I think I'll do it with searchandreplace.php
    as mentioned at codex.
     
  8. dewaz

    dewaz Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    399
    Likes Received:
    47
    Home Page:
    not working, i think i have to take a break and leave it for a while.
     
  9. sparky123

    sparky123 Registered Member

    Joined:
    Oct 8, 2009
    Messages:
    98
    Likes Received:
    32
    you'll have to rename all the links inside Phpmyadmin and inside wordpress media directory. If you copy your hacked wordpress to a subdomain or anywhere for that matters, it is still unsafe. If you create a new installation then you won't have any issue. If you install a new wordpress then go to your first site and export the data and import them again to your second/new site. This should solve the media/content issue.
     
  10. dewaz

    dewaz Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    399
    Likes Received:
    47
    Home Page:
    thank you, since sub.mydomain2.com is updated, so I don't have any content issue anymore.

    my problem is how to change from sub.mydomain2.com to mydomain1.com

    right now I can access this site with http://mydomain1.com
    but I also can access this site with http://sub.mydomain2.com

    some picture and content still bind to sub.mydomain2.com
    when I change "WordPress Address (URL)" to mydomain1.com many pics not working