Moving WordPress closer to root (11 posts)

  1. joeking
    Posted 10 years ago #

    Like a moron I created a folder called Blog before uploading wordpress to it so now have this situation:


    Is there a way of moving everything closer to the root so that wordpress replaces blog. I tried moving the folder up a level, but then things go wrong and I can't access the admin panel, etc.,

    And if it's not pushing my luck, could the blog index be my actual homepage?

    Thank you!

  2. Kafkaesqui

    Posted 10 years ago #

    Just before moving the file up one directory, change the WordPress and Blog address setting under Options > General.

  3. Kafkaesqui

    Posted 10 years ago #

    Er, that would be moving the files.

  4. joeking
    Posted 10 years ago #

    Thanks Kaf, I did that and WordPress is now up a level :-)

    Now something strange happens. If I rename WordPress directory to another name the files within the directory disappear. When I revert the name to WordPress they come back. Does this mean I cannot change the name of that directory?

    I want to delete the now empty directory called Blog and rename the wordpress directory Blog. But when I do this the files disappear and files cannot be found by the browser.

  5. NuclearMoose
    Posted 10 years ago #

    Have you changed your blog URI in the admin panel to reflect the new address?

  6. joeking
    Posted 10 years ago #

    Yes, the website works fine at:


    But I can't rename the wordpress directory without the wordpress files in the directory vanishing.

    If I change the blog address in the admin panel to:


    do I also need to move some files? At the moment it doesn't work with the index.php still in the WordPress directory

  7. kioria
    Posted 10 years ago #

    If you move your wordpress files (index.php and etc), then you ultimately have http://www.yourdomain.com as your wordpress folder. In this case, normall it'd be your public_html/ folder.

    So there is no need for the folder public_html/wordpress/ to exist if you move everything contained in the folder wordpress to public_html/. This is just moving up a level like you said.

    And with accordance, you need to change your WordPress address and Blog address (as well as your URI) to your http://www.domain.com.

    I moved mine from http://www.domain.com/wordpress/ -> http://www.domain.com.

  8. archshrk
    Posted 10 years ago #

    This is something I want to do as well, so to recap...

    First, rename "WordPress address" to match the desired location (domain.com or domain.com/blog, etc.)

    Then, move all the files to the new location, correct?

    Also, what about "Blog address" ? How does that work?

  9. Kafkaesqui

    Posted 10 years ago #

    If you reach your blog at domain.com/blog, that's what you put in "Blog address". "WordPress address" is almost always the same thing, but you can (and some do) locate their WordPress installation and their blog in separate directories. But that's a tiny bit more complicated than the instructions listed in this thread.

  10. archshrk
    Posted 10 years ago #

    Thank you Kaf. As for making the move itself...is what I described correct?
    (rename the addresses and then move the files) If so, will I be "done" or is there more tweeks to be made before it works?

  11. Kafkaesqui

    Posted 10 years ago #

    That's really all there is to it; unless you've hardcoded a filepath in your templates or whatnot, you should be fine. Normally, about the only thing you may have to fix later is any links to posts on your blog within other posts. Images or other media (within posts) may be an issue as well, unless you have a separate, non-WP directory set up for these (say domain.com/images).

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.