• Hello,

    I’d really appreciate some help on this. I used to have WordPress operating the root of my site (nspicer.com). But I recently tried moving it to a folder (nspicer.com/musicfor) so that I could use the root as my portfolio site, of sorts. To move the site, I simply created a new directory and transferred my current WordPress files to that directory.

    However, now whenever someone visits nspicer.com/musicfor, the theme (Azul) isn’t operational — or even visible — and a specific post comes up, rather than the WordPress homepage.

    I also cannot access wp-admin (I’m trying by going to nspicer.com/musicfor/wp-admin and nspicer.com/wp-admin, which is where it used to be), so I’m unable to change anything that way.

    Once again, any help would be greatly appreciated. I’ve tried following the instructions from a few different Codex sites (e.g. http://codex.wordpress.org/Changing_The_Site_URL and http://codex.wordpress.org/Moving_WordPress) but I’m afraid I’m too ignorant/stupid to understand quite what’s going on.

    Thanks to absolutely anybody who can help me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Ok – so, easiest method is to include the line:

    define('RELOCATE',true);

    in your wp-config.php
    ( above where it says /* That’s all, stop editing! Happy blogging. */ )

    Then, navigate to :
    http://nspicer.com/musicfor/wp-login.php

    As per the WP support article:

    5. Login as per normal.

    6. Look in your web browser’s address bar to verify that you have, indeed, logged in to the correct server. If this is the case, then in the Admin back-end, navigate to Settings > General and verify that both the address settings are correct. Remember to Save Changes.

    Afterwards, you can delete the code you added to wp-config.php

    Thread Starter nspicer

    (@nspicer)

    Hiya jibbius,

    Thanks a ton for helping me. I’m able to access the login site; however, when I log in, I reach a site that says “This webpage has a redirect loop,” which Chrome defines as a page that has too many redirects.

    So my guess is that some of my WordPress files are simply stored in the wrong folder. The nspicer.com/musicfor/wp-login.php, once it’s passed, goes to the site “http://www.nspicer.com/musicfor/wp-index.html/wp-login.php” And I’m not sure why/how the ‘wp-index.html’ is getting in the URL.

    Thanks again for trying to help. If you have any further thoughts, I’d love to hear them. Have a good one!

    Thread Starter nspicer

    (@nspicer)

    Okay, I’ve managed to reconfigure some things so that nspicer.com/musicfor is at least handled by the theme. I can also access nspicer.com/musicfor/wp-admin as I would have normally.

    Now I just need to find out how to get all my images to appear again, but I have a feeling that with some more trial-and-error/fiddling/forum browsing, I should be able to find a solution in the near future.

    Thanks a ton jibbius. You’re awesome!

    Thread Starter nspicer

    (@nspicer)

    And… nevermind. Once I got WordPress to function at /musicfor, my root site was entirely disrupted, to the point where no CSS stylesheets were applied. I assume then, again, it’s a matter of where my files are located on the server, and the URL of my links. Because if I change where certain files are on the server, the links will be dysfunctional. Bah.

    Anyway, thanks again for your assistance.

    I assume…it’s a matter of where my files are located on the server…if I change where certain files are on the server, the links will be dysfunctional.

    Yes, and the issue there is about the *servers*, not WordPress, needing to know an absolute path to your files. If you had first un-assigned your domain at cPanel, then copied your installation to anywhere you wish in any folder with any name of your own choosing, then re-assigned your domain to that new location you could have logged back in and never missed a beat.

    In whatever way you get there, the essence of the above will have to be accomplished/satisfied in order to again have your site working properly.

    Thread Starter nspicer

    (@nspicer)

    Ah, thanks leejosepho. I’ll definitely keep that in mind next time so this doesn’t happen again. Seems very simple when you put it that way. Too bad I didn’t think of it. Oh well.

    Thanks for your help!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Moving WordPress from root to folder’ is closed to new replies.