Forums

Blog Migration (17 posts)

  1. joseph.amr
    Member
    Posted 4 months ago #

    Hello,

    I am trying to Migrate our Blog " Without changing the URL from the setting window " - because we have the blog on a shared server, and it will took more than 4 hours to download files & re-change the URL. (I need to make the new blog running before i kill the old one).

    So, I changed the URL directly from the Database after I uploaded the database to a dedicated server (& and copied the files), after I changed the URLs from the database, I changed the URL of sub-Pages from the wp-admin settings, and after a quick look to the database tables, it seems many tables still point to the old server, so I modified them all by a few Mysql queries.

    The Problem when I click "Home" or other buttons on the main page it takes me to the old blog, and when i looked it the page source, its seems that it still pointing to old blog, I searched All over the setting pages & the database, and nothing pointing to the old blog there.

    What Mistakes & did ? and Is there a correct procedure to Migrate the blog without kill the running blog " even for 1 hour ".

    this is the page for the new URL
    http://shukr.co.uk/blog/

    this is the running blog:
    http://blog.shukrattire.com

    Thanks a lot.

  2. vtxyzzy
    Member
    Posted 4 months ago #

    Take a look at the WP Migrate DB plugin.

  3. joseph.amr
    Member
    Posted 4 months ago #

    Ok thanks, I will check that.

  4. joseph.amr
    Member
    Posted 4 months ago #

    I Used: WP Migrate DB.

    Ok its Cool, But the main Page Still has the Old URL Again :(
    I Don't know why, its crazy !!!

    (Your database (SQL) file has been successfully generated. Your download should begin any second.)

    I still see the OLD URL in the Main-Page Source ?!?

    Please Some One Help Me.

  5. joseph.amr
    Member
    Posted 4 months ago #

    In another way, My main page menus still pointing to the Old URL.
    Even the "Home" Button. !!

  6. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Check the code that is generating your menu. Perhaps the urls were hard coded in.

  7. joseph.amr
    Member
    Posted 4 months ago #

    I dont mind to check that, but what file that generate the main page ! or the Menu !! so i cna check it !?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    The template file that generates the menu varies from themes to theme., Your main posts page is generated by the index.php template file.

  9. joseph.amr
    Member
    Posted 4 months ago #

    Hello esmi,

    are you sure of this ?
    I Searched all index.php files, no one of them has any URL even.

    Note: I am talkin about the Header Menu "that menu in the top of the home page"

  10. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    are you sure of this ?

    Yes

    I am talkin about the Header Menu "that menu in the top of the home page"

    Yes - I am aware of that. Try looking in your current theme.

  11. meesha
    Member
    Posted 4 months ago #

    I have the same issue but different circumstances.

    I run my main blog and my development blog on the same server but in different folders. Main: mysite.com/blog/, Development: mysite.com/development/.

    I mainly use the WP setup in the /development/ folder other peoples blogs I'm working on and it doesn't seem to interfere with the main setup in /blog/, but now I want to work on my own theme so set up /development/ to be identical to /blog/.

    I used WP-Migrate to prepare the MySQL database for move and edited the database name in the .sql file to match the new install name.

    I imported the changed database and moved over my WP-contents folder. After setting permissions, etc. I updated the theme so all the html links now go to /development/ instead of /blog/.

    Thinking I had done everything I do when working on other site migrations, I went to the new home page. Looks perfect, everything is where is should be and when I mouse over all the links they show /development/ in the URL just like they should.

    Problem: Doesn't matter what link I click on, I end up on the /blog/ equivalent of that page. Example: "mysite.com/development/contact-us" ends up at "mysite.com/blog/contact-us".

    The only difference I can see is when I work on another's blog in /development/ there is no equivalent page or post in /blog/ to go to. If I create and publish a new test post for the blog in /development/ and click on its link on the home page, it goes to "page not found", because there is no equivalent page in /blog/.

    If I do a view source all the links are correct with /development/ in them.

    What am I missing? Is it a path issue that has to be mapped or something or do I have to do this one from a different server?

    Thanks

  12. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    @meesha: It is considered impolite to interrupt another poster's thread. Please post your own topic.

  13. meesha
    Member
    Posted 4 months ago #

    @esmi: if it is impolite then there are a lot of impolite people all over this forum. I notice you didn't take any of your valuble time to offer a suggestion to my problem, must be too busy telling others how impolite they are.

    Don't bother replying, no thanks to you I've solved my own probelem and have moved on.

  14. vtxyzzy
    Member
    Posted 4 months ago #

    @joseph.amr, take a look at header.php for the main menu.

  15. joseph.amr
    Member
    Posted 4 months ago #

    @vtxyzzy

    I can't see any URL in any header.php neither index.php !!
    Where is the main page source come from ??

    :(

  16. joseph.amr
    Member
    Posted 4 months ago #

    Ok, I found the URL's, Under the active theme folder :)
    But I found them in 6 different .php files:
    single, search, navigation, contact_template, archives, archive

    And I don't know if I should modify all those files !!

    I am not that good with php, but i will try to find the relations between those files, and which file must be modified.

    I may start with navigation.php

    theme Name: KKP Light 0.5 by Tony Geer

  17. joseph.amr
    Member
    Posted 4 months ago #

    DONE.
    Thank god, and thank you :)
    I modified "navigation.php", but i wonder; should i modify all ?

    Thanks

Reply

You must log in to post.

About this Topic