• I really had a hard time wording a topic title for this post.

    I have a situation wherein I’m helping someone who has two WP installs in sub-folders of their domain and with the intention of getting rid of the older one, moved the new one to root (public_html).

    The new one moved to root (public_html) works fine now except for one problem – when clicking the “Blogs” link in the menu it takes the visitor to the old Blog site.

    It’s easier and probably clearer for me to put it this way in example form:

    Two WP’s existed in account:
    – One at example.com/site
    – One at example/blog

    I moved the one at example.com/site to the public_html folder using the proper procedures and removed the /site folder.

    Now the WP that was at example.com/site exists directly at example.com and works fine EXCEPT this one problem:

    – Now when “Blogs” link in top menu is clicked, it takes visitor to an old WP at example.com/blog instead of showing the just the new blog posts.

    I took care and followed the instructions at https://codex.www.ads-software.com/Moving_WordPress and also used the Database Search and Replace Tool at https://interconnectit.com/124/search-and-replace-for-wordpress-databases/

    I’m considering using the DB search and replace tool to replace all instances of example.com/blog to just example.com , but I’m afraid that might cause more harm than good.

    I’m also suspicious that even though the two WP’s are in separate folders, maybe the fact that both DB’s have same wp_ table prefix. However, there was no problem when one WP was at /site and the other was at /blog , so I’m not sure if just moving one of them to root (public_html) would make the table prefix have any bearing on this.

    I hope that I explained this fairly well. I would post direct links if it weren’t a privacy issue for the person I’m helping. I’m not sure that providing the domain here would make that much difference in this scenario. I’m hoping not. I’m hoping that my explanation above will make sense to someone here who is familiar with the scenario and can help.

    Many thanks for any feedback and/or assistance!

Viewing 1 replies (of 1 total)
  • Thread Starter anotherdave

    (@anotherdave)

    POSSIBLY SOLVED ALREADY:

    I took a chance and though to just briefly rename the second WP folder from /blog to /old_blog just to see what might happen (knowing I could quickly rename it back) and that seems to have resolved the issue!

    I’m going to do some testing now and check the PHP error_log files on the server and other error logs (such as cPanel) to see if there are any detrimental affects, other than possibly having to ditch the old blog in favor of keeping the new one working right. (Person I’m helping was hoping to keep both).

    Thanks VERY much to anyone who took the time to read this.

    I’m still open to responses and opinions if anyone cares to provide input.

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Two WP's in separate folders, moved one to root, now Blogs link points to old’ is closed to new replies.