WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] change name of wp installation folder (11 posts)

  1. deepbevel
    Member
    Posted 2 years ago #

    I accidently installed wp in a folder called "wordpres"
    It's a subdirectory on the server, not the root doamin. So the url says
    http://www.root-domain.com/other-directory/wordpress

    I just want

    http://www.root-domain.com/other-directory/

    what's the best way to proceed? I always have trouble renamung wp sites, can never figure out what went wrong or how I fixed it. Please help if you can.

    Thanks!

  2. Rifty
    Member
    Posted 2 years ago #

    Although it's a pain I think the best way forward is to install WordPress again in the correct directory.

    Here is a guide if you want to keep the /wordpress directory though;
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. deepbevel
    Member
    Posted 2 years ago #

    I did it, I just copied all the installation files to to the subdirectory I intended. Then I logged in to the initial wp installation and changed the WordPress Address (URL)and Site Address (URL). It promted a log in to the copy of the site and all seems good.

    But I'm confused, I don't understand how I made the first installation become the second installation.. if that's what happened...? They have the same wp-config, using the same database.
    But I couldn't access the copy untill I changed the URL and Site Address in the original. What is it that's happening here? Is a copy different from a new install? how does the server know the difference? Any insite would be appriciated. Still pretty ignorant about how wp works on a server. I'm used to easy Flash sites with no data base. Just point the url and go.

  4. deepbevel
    Member
    Posted 2 years ago #

    I deleted the original site and all's still good. Thanks for the input Rifty.

  5. Michael Broder
    Member
    Posted 1 year ago #

    I successfully changed the name of my WP install folder (www.mydomain.com/new-folder), with one hitch. All of my pages pointed correctly to other pages, but when I clicked on "blog" (the main/post page) from any static page, it tried to go back to the old URL (www.mydomain.com/old-folder). I suspect this may be an issue with my theme? Maybe one particular php file is not being updated properly with the new URL? Any idea how I could fix this (I changed back to the original name for now so my blog would function properly; when I get this problem solved, I'll consider changing the name again).

    THANKS!!!
    MHB

  6. deepbevel
    Member
    Posted 1 year ago #

    still not my expertice, but I think the first paragraph applies:
    http://codex.wordpress.org/Moving_WordPress
    I think renaming your installation is the equivilant of moving it.

  7. Michael Broder
    Member
    Posted 1 year ago #

    Yes, that's what I did, but I only changed the WordPress address (URI)and the Site address (URL). I did not bother with any of the other instructions having to do with the permalinks and so forth, and that's probably what I need to do.

    Thanks for weighing in. You're probably right on.

    Best,
    MHB

  8. deepbevel
    Member
    Posted 1 year ago #

    after you made the url changes in admin settings, did you then rename your install folder to match?

  9. deepbevel
    Member
    Posted 1 year ago #

    you might also check your.htaccess file in your install root. Make sure it hads the correct directory name.

  10. Michael Broder
    Member
    Posted 1 year ago #

    Actually, ALL I had to do differently was go into my menus and manually change the URL of the home page/blog. Now it all works fine. My blog is renamed and lives in an appropriately named folder! Thanks for your help--you really did help!

    MHB

  11. deepbevel
    Member
    Posted 1 year ago #

    nice, easier than I remember. It's always a hard one for me because I just don't do it often. good to review.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.