Forums

[resolved] Moving WordPress to Root Uses Old Template FIles (16 posts)

  1. schaefermic
    Member
    Posted 2 years ago #

    hello,

    so i made a beta site where the wordpress folder was in a sub-directory /site/. When I decided i wanted to go live, I successfully moved the site over to the root. While doing this though, I never deleted the old /site/, and now when I want to change any of my template files i still have to edit them in the /site/ directory. Any idea what I could be doing wrong?

    Thanks!

  2. songdogtech
    Member
    Posted 2 years ago #

    Move your whole WP install to root by reading Moving WordPress « WordPress Codex and other linked docs, and then delete the WP files in /site/ or you'll have two WP installs.

  3. schaefermic
    Member
    Posted 2 years ago #

    songdogtech- thanks for the help, but i believe i have already followed that tutorial to a T. when i delete the WP files in /site/ the whole site goes away. even though the websites url are all being viewed in the root, the template files are still located in /site/.

  4. songdogtech
    Member
    Posted 2 years ago #

    But where are all the core WP files, like wp-admin, wp-includes, etc? In root or in /site/? Check your page source and see where the template files are being called from, and check htaccess.

  5. schaefermic
    Member
    Posted 2 years ago #

    all of those core files are in both directories, and i log in to wp-admin from the root folder. i have an htaccess file for both directories.

  6. songdogtech
    Member
    Posted 2 years ago #

    That's the problem. Stick with one WP install. Otherwise, you're just making things complicated for youself.

  7. kenflaspohler
    Member
    Posted 2 years ago #

    I am doing something similar too and i want to do a 301 redirect to preserve page rank, any suggestions.

  8. songdogtech
    Member
    Posted 2 years ago #

    Start a new thread with that question....

  9. schaefermic
    Member
    Posted 2 years ago #

    how do i stick with one install when im switching to the root? i'm not sure what i did wrong.

  10. songdogtech
    Member
    Posted 2 years ago #

    Moving WordPress « WordPress Codex shows how to *move* wordpress files, not copy wordpress files. Two wordpress installs for the same site with the same content is not a good idea.

  11. schaefermic
    Member
    Posted 2 years ago #

    as ive explained, ive followed every one of those steps.

    im sorry, but simply sending me the tutorial (that i used in the first place), is not very helpful at all. And yes, I Know having a problem is not a good idea, thats why im asking for help to remedy this issue.

    i have:

    1. backed up everything.

    2. Changed the URI's in Settings.

    3. Moved my core files over to the root. (yes while leaving the other files in tact, as a backup).

    If i try to delete the backups in the /site/ folder, the whole website goes down.

  12. schaefermic
    Member
    Posted 2 years ago #

    can anyone else help me with this matter? any suggestions? thanks.

  13. MichaelH
    Volunteer
    Posted 2 years ago #

    Might use this and make sure there's no old urls in your database:
    http://wordpress.org/extend/plugins/search-and-replace/

  14. schaefermic
    Member
    Posted 2 years ago #

    yep! that did the trick! THANK YOU! any idea why that happened, and how to avoid it? this has happened to me on a few sites.

  15. MichaelH
    Volunteer
    Posted 2 years ago #

    any idea why that happened, and how to avoid it?

    Probably post guids that contain 'URL' to article so you can't avoid it.

  16. songdogtech
    Member
    Posted 2 years ago #

    I didn't know about that plugin; easier than using PHPMyAdmin.

Topic Closed

This topic has been closed to new replies.

About this Topic